code: def _create_immutable_container(base, mutable_functions):
      container = type("immutable_" + base.__name__, (base,), {})
      for attr in mutable_functions:
          setattr(container, attr, _no_mutation)
      return container
  
file_path: pytorch/torch/fx/immutable_collections.py
imports: from typing import Any, Dict, Iterable, List, Tuple
  from torch.utils._pytree import _dict_flatten, _dict_unflatten, _list_flatten, _list_unflatten, Context, register_pytree_node
  from ._compatibility import compatibility
label_desc: Use image node_id 2 for calling a global function with example usage: _create_immutable_container(base, mutable_functions) and returns: container