code: def make_node(self, *inputs):
      inputs = list(map(is_variable, inputs))
      for input in inputs:
          if not isinstance(input.type, MyType):
              raise Exception("Error 1")
  
      outputs = [MyType2()()]
      return Apply(self, inputs, outputs)
  
imports: import numpy
  from pytensor.graph.basic import Apply, Constant, NominalVariable, Variable
  from pytensor.graph.fg import FunctionGraph
  from pytensor.graph.op import HasInnerGraph, Op
  from pytensor.graph.replace import clone_replace
  from pytensor.graph.type import Type
label_desc: Use image node_id 1 for calling the MyOpCastType2 obj's underlying member method code with example usage: obj.make_node() and returns: Apply