code: def find_modules():
      """Finds all the modules in the core package imported.
  
      Returns:
        A list containing all the modules in tensorflow.python.
      """
  
      tf_modules = []
      for name, module in sys.modules.items():
          # The below for loop is a constant time loop.
          for package in PACKAGES:
              if name.startswith(package):
                  tf_modules.append(module)
  
      return tf_modules
  
imports: import importlib
  import os
  import pkgutil
  import sys
  from absl import flags
  from absl.testing import absltest
  import numpy
  import tensorflow.compat.v2
  from tensorflow.python.eager import context
  from tensorflow.python.ops import logging_ops
  from tensorflow.tools.docs import tf_doctest_lib
  import doctest
label_desc: Use image node_id 2 for calling a global function with example usage: find_modules() and returns: tf_modules