code: def _recursively_freeze(value):
      
      if isinstance(value, Mapping):
          return _FrozenOrderedDict(((k, _recursively_freeze(v)) for k, v in value.items()))
      elif isinstance(value, list) or isinstance(value, tuple):
          return tuple(_recursively_freeze(v) for v in value)
      return value
docs: Recursively walks ``Mapping``s and ``list``s and converts them to ``_FrozenOrderedDict`` and ``tuples``, respectively.