code: def register_view_op_c_code(type, code, version=()):
      """
      Tell ViewOp how to generate C code for an PyTensor Type.
  
      Parameters
      ----------
      type : PyTensor type
          It must be the PyTensor class itself and not an instance of the class.
      code : C code
          Returns a view for the PyTensor type 'type'. 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.
  
      """
      ViewOp.c_code_and_version[type] = (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 1 for calling a global function with example usage: register_view_op_c_code(type, code, version) without return types