class_docstr: Track side effects (list mutation, setattr, etc) that need to be
  applied after an FX graph is run.
class_docstr_tok: ["Track","side","effects","(","list","mutation",",","setattr",",","etc",")","that","need","to","be","applied","after","an","FX","graph","is","run","."]
docstr: Create a shallow copy
docstr_tok: ["Create","a","shallow","copy"]
code: def clone(self):
      """Create a shallow copy"""
      return self.__class__(
          id_to_variable=dict(self.id_to_variable),
          store_attr_mutations={
              k: dict(v) for k, v in self.store_attr_mutations.items()
          },
          keepalive=list(self.keepalive),
          save_for_backward=self.save_for_backward,
          tensor_hooks=self.tensor_hooks,
      )
  
imports: import inspect
  from typing import Any, Dict, List, Optional, Union
  import torch.nn
  from .None import utils, variables
  from .bytecode_transformation import create_call_function, create_call_method, create_instruction
  from .codegen import PyCodegen
  from .exc import unimplemented
  from .source import LocalSource, Source
  from .utils import nn_module_new, object_new
  from .variables.base import is_side_effect_safe, MutableLocalBase, MutableLocalSource, VariableTracker
label_desc: Use image node_id 4 for calling the SideEffects obj's underlying member method code with example usage: obj.clone() and returns: self