class_docstr: PyTorch module, but with uncertainties.
  
  This base class provides useful tools to handle search spaces built on top of PyTorch modules,
  including methods like :meth:`simplify`, :meth:`freeze`.
  
  :class:`MutableModule` can have dangling mutables registered on it via :meth:`add_mutable`.
class_docstr_tok: ["PyTorch","module",",","but","with","uncertainties",".","This","base","class","provides","useful","tools","to","handle","search","spaces","built","on","top","of","PyTorch","modules",",","including","methods","like",":","meth",":","`","simplify","`",",",":","meth",":","`","freeze","`",".",":","class",":","`","MutableModule","`","can","have","dangling","mutables","registered","on","it","via",":","meth",":","`","add_mutable","`","."]
docstr: Call ``create_fixed_module()`` when fixed-arch context is detected.
  
  Typically this should be enabled. Otherwise the arch context might not be correctly handled.
  In cases where this flag is disabled, remember to detect arch context and
  manually freeze things in ``__init__``, or confirm that it's a composite module
  and nothing needs to be frozen.
  
  By default, it returns true when :meth:`create_fixed_module` is overridden.
code: def should_invoke_fixed_module(cls):
      """Call ``create_fixed_module()`` when fixed-arch context is detected.
  
      Typically this should be enabled. Otherwise the arch context might not be correctly handled.
      In cases where this flag is disabled, remember to detect arch context and
      manually freeze things in ``__init__``, or confirm that it's a composite module
      and nothing needs to be frozen.
  
      By default, it returns true when :meth:`create_fixed_module` is overridden.
      """
      return not getattr(
          cls.create_fixed_module, "_notimplemented", False
      )
  
imports: import copy
  import itertools
  import inspect
  import logging
  from typing import Any, Callable, Type, Iterable, Dict, Tuple, List, Optional, TypeVar
  import torch
  from torch import nn
  from nni.mutable import Mutable, LabeledMutable, Sample, SampleValidationError, ensure_frozen, frozen_context, label_scope, frozen
  from nni.nas.space import BaseModelSpace, current_model, model_context
  from nni.common.serializer import SerializableObject, _formulate_arguments, _copy_class_wrapper_attributes
label_desc: Use image node_id 2 for calling the MutableModule obj's underlying member method code with example usage: obj.should_invoke_fixed_module(cls) and returns: unknown