code: def run_all(*modules):
      failing = 0
      passing = 0
      for module in modules:
          methods = [
              func
              for func in dir(module)
              if callable(getattr(module, func))
              and not func.startswith("__")
          ]
          module_failing = 0
          module_passing = 0
          for method in methods:
              try:
                  print("{0}.{1}".format(module.__name__, method))
                  getattr(module, method)(module)
                  print(" [PASSED]")
                  module_passing = module_passing + 1
              except Exception as e:
                  print(" [FAILED]: " + str(e))
                  module_failing = module_failing + 1
          print(
              "{0}: {1} of {2} passsed".format(
                  module.__name__,
                  module_passing,
                  module_passing + module_failing,
              )
          )
          passing = passing + module_passing
          failing = failing + module_failing
      return passing, failing
  
file_path: flatbuffers/tests/flatc/flatc_test.py
imports: import argparse
  import platform
  import subprocess
  from pathlib import Path
label_desc: Use image node_id 10 for calling a global function with example usage: run_all() and returns: passing,  failing