code: def is_importable(module, attr, only_modules):
      if only_modules:
          return inspect.ismodule(getattr(module, attr))
      else:
          return not (attr[:2] == "__" and attr[-2:] == "__")
  
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 6 for calling a global function with example usage: is_importable(module, attr, only_modules) and returns: inspect, unknown