class_docstr: To handle errors and addition of custom layers
class_docstr_tok: ["To","handle","errors","and","addition","of","custom","layers"]
docstr: Either raise an error for an unsupported op type or return custom layer add function
docstr_tok: ["Either","raise","an","error","for","an","unsupported","op","type","or","return","custom","layer","add","function"]
code: def unsupported_op(
      self,
      node,  # type: Node
  ):
      # type: (...) -> Callable[[Any, Node, Graph, ErrorHandling], None]
      """
      Either raise an error for an unsupported op type or return custom layer add function
      """
      if self.add_custom_layers:
          from ._operators import _convert_custom
  
          return _convert_custom
      else:
          raise TypeError(
              "ONNX node of type {} is not supported. {}\n".format(
                  node.op_type, self.rerun_suggestion
              )
          )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/onnx/_error_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import Dict, Text, Any, Callable
  from coremltools.models.neural_network import NeuralNetworkBuilder
  from ._graph import Node, Graph
label_desc: Use image node_id 2 for calling the ErrorHandling obj's underlying member method code with example usage: obj.unsupported_op(node) and returns: _convert_custom