class_docstr: Exception raised when a port is fed with a NmTensor of incompatible
  type.
class_docstr_tok: ["Exception","raised","when","a","port","is","fed","with","a","NmTensor","of","incompatible","type","."]
code: def __init__(
      self,
      class_name,
      port_name,
      first_type,
      second_type,
      type_comatibility,
  ):
      super().__init__()
      self.message = (
          "\nIn {}. \nPort: {} and a NmTensor it was fed are \n".format(
              class_name, port_name
          )
      )
      self.message += (
          "of incompatible neural types:\n\n{} \n\n and \n\n{}".format(
              first_type, second_type
          )
      )
      self.message += "\n\nType comparison result: {}".format(
          type_comatibility
      )
  
imports: from typing import Any, Optional
  import torch
  from nemo.core.neural_types.axes import AxisKind, AxisType
  from nemo.core.neural_types.comparison import NeuralTypeComparisonResult
  from nemo.core.neural_types.elements import ElementType, VoidType
label_desc: Use image node_id 1 to create a new NeuralPortNmTensorMismatchError object from inherited base classes: NeuralTypeError with example: obj = NeuralPortNmTensorMismatchError(class_name, port_name, first_type, second_type, type_comatibility)