code: def get_callable_dict(
      fn: Union[nn.Module, Callable, Mapping, Sequence]
  ) -> Union[Dict, Mapping]:
      if isinstance(fn, nn.Module):
          return nn.ModuleDict({get_callable_name(fn): fn})
      if isinstance(fn, Mapping):
          return fn
      if isinstance(fn, Sequence):
          return {get_callable_name(f): f for f in fn}
      if callable(fn):
          return {get_callable_name(fn): fn}
      return None
  
imports: from typing import Callable, Dict, Mapping, Sequence, Union
  from torch import nn
label_desc: Use image node_id 2 for calling a global function with example usage: get_callable_dict(fn) and returns: None, nn, fn, unknown, dict