code: def has_func(mod, fn):
      if isinstance(mod, dict):
          return fn in mod
      else:
          return hasattr(mod, fn)
  
imports: from .None import compat
  import functools
  import itertools
  import torch
label_desc: Use image node_id 14 for calling a global function with example usage: has_func(mod, fn) and returns: unknown, hasattr