code: def get_func(mod, fn):
      if isinstance(mod, dict):
          return mod[fn]
      else:
          return getattr(mod, fn)
  
imports: from .None import compat
  import functools
  import itertools
  import torch
label_desc: Use image node_id 15 for calling a global function with example usage: get_func(mod, fn) and returns: mod, getattr