code: def is_possible_submodule(module, attr):
      try:
          obj = getattr(module, attr)
      except AttributeError:
          # Is possilby an unimported submodule
          return True
      except TypeError:
          # https://github.com/ipython/ipython/issues/9678
          return False
      return inspect.ismodule(obj)
  
imports: import glob
  import inspect
  import itertools
  import os
  import re
  import sys
  from importlib import import_module
  from importlib.machinery import all_suffixes
  from time import time
  from zipimport import zipimporter
  from .completer import expand_user, compress_user
  from .error import TryNext
  from ..utils._process_common import arg_split
  from IPython import get_ipython
  from typing import List
  from __res import importer
label_desc: Use image node_id 7 for calling a global function with example usage: is_possible_submodule(module, attr) and returns: inspect, True, False