code: def _mock_tf_node():
      tfnode = node_def.NodeDef()
      tfnode.name = "aNode"
      tfnode.op = "PlaceholderWithDefault"
      tfnode.input.extend(["anInput", "^aControlInput"])
      tfnode.attr["dtype"].type = types.DataType.DT_INT32
      dims = [(1, "outer"), (2, "middle"), (3, "inner")]
      for dim_size, dim_name in dims:
          tf_dim = tensor_shape.TensorShapeProto.Dim()
          tf_dim.size = dim_size
          tf_dim.name = dim_name
          tfnode.attr["shape"].shape.dim.append(tf_dim)
      return tfnode
  
file_path: coremltools/coremltools/converters/mil/frontend/tensorflow/test/test_parsed_tf_node.py
imports: import unittest
  import pytest
  from tensorflow.core.framework import node_def_pb2
  from tensorflow.core.framework import tensor_shape_pb2
  from tensorflow.core.framework import types_pb2
  from coremltools.converters.mil.frontend.tensorflow.parsed_tf_node import ParsedTFNode
label_desc: Use image node_id 1 for calling a global function with example usage: _mock_tf_node() and returns: tfnode