code: def register_deep_copy_op_c_code(typ, code, version=()):
      """
      Tell DeepCopyOp how to generate C code for an PyTensor Type.
  
      Parameters
      ----------
      typ : PyTensor type
          It must be the PyTensor class itself and not an instance of the class.
      code: C code
          Deep copies the PyTensor type 'typ'. Use %(iname)s and %(oname)s for the
          input and output C variable names respectively.
      version
          A number indicating the version of the code, for cache.
  
      """
      DeepCopyOp.c_code_and_version[typ] = (code, version)
  
imports: import copy
  import pickle
  import warnings
  from pytensor.graph.basic import Apply
  from pytensor.graph.op import Op
  from pytensor.link.c.op import COp
  from pytensor.link.c.type import CType
label_desc: Use image node_id 2 for calling a global function with example usage: register_deep_copy_op_c_code(typ, code, version) without return types