def METHOD_NAME(tensor):
  """Parse data from given `tensor`."""
  if not isinstance(tensor, tensor_pb2.TensorProto):
    raise TypeError("TensorProto required, but given {}".format(type(tensor)))
  return tensor_util.MakeNdarray(tensor)