class_docstr: Transformation that does nothing except making a deepcopy of the graph module.
class_docstr_tok: ["Transformation","that","does","nothing","except","making","a","deepcopy","of","the","graph","module","."]
code: def transform(self, graph_module: "GraphModule") -> "GraphModule":
      clone = copy.deepcopy(graph_module)
      # This is needed because copy.deepcopy does not take care of it.
      # Without these attributes, the reverse transformation cannot be done.
      for n1, n2 in zip(graph_module.graph.nodes, clone.graph.nodes):
          if hasattr(n1, "transformations"):
              n2.transformations = n1.transformations
      return clone
  
imports: import collections
  import copy
  import functools
  import itertools
  import operator
  import warnings
  from abc import ABC, abstractmethod
  from typing import TYPE_CHECKING, List
  import torch
  from transformers.file_utils import add_end_docstrings
  from transformers.utils.fx import _gen_constructor_wrapper
label_desc: Use image node_id 1 for calling the DeepCopy obj's underlying member method code with example usage: obj.transform(graph_module) and returns: clone