class_docstr: A Python execution environment.
  
  Encapsulates a namespace for variable lookup
class_docstr_tok: ["A","Python","execution","environment",".","Encapsulates","a","namespace","for","variable","lookup"]
docstr: Shallow copy
docstr_tok: ["Shallow","copy"]
code: def __deepcopy__(self, memo: dict[Any, Any]) -> Environment:
      """
      Shallow copy
      """
      cls = self.__class__
      result = cls.__new__(cls)
      memo[id(self)] = result
      old = self.__dict__
      new = result.__dict__
  
      for key, item in old.items():
          new[key] = item
          memo[id(new[key])] = new[key]
  
      return result
  
imports: from __future__ import annotations
  from collections.abc import MutableMapping
  from contextlib import suppress
  from dataclasses import dataclass
  from functools import lru_cache
  from typing import TYPE_CHECKING
label_desc: Use image node_id 9 for calling the Environment obj's underlying member method code with example usage: obj.__deepcopy__(memo) and returns: result