code: def list_functions(source_glob):
      """
      List all of the functions and classes defined
      """
      defined = []
      #  Iterate through each source file
      for sp in glob.glob(source_glob):
          module_name = sp[:-3]
          module_name = module_name.replace("/", ".")
          #  Parse the source file into an AST
          node = ast.parse(open(sp).read())
          #  Extract the names of all functions and classes defined in this file
          defined.extend(
              (n.name, module_name + "." + n.name)
              for n in node.body
              if (
                  isinstance(n, ast.FunctionDef)
                  or isinstance(n, ast.ClassDef)
              )
          )
      return defined
  
imports: import argparse
  import ast
  import glob
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: list_functions(source_glob) and returns: defined