parameters: (v, arg_name)
docstring: Ensure v is a TensorProto.
docstring_summary: Ensure v is a TensorProto.
docstring_tokens: Ensure v is a TensorProto .
function: def _MakeTensor(v, arg_name):
    """Ensure v is a TensorProto."""
    if isinstance(v, tensor_pb2.TensorProto):
      return v
    raise TypeError(
        f"Don't know how to convert {repr(v)} to a TensorProto for argument "
        f"'{arg_name}'")
function_tokens: def _MakeTensor ( v , arg_name ) : if isinstance ( v , tensor_pb2 . TensorProto ) : return v raise TypeError ( f"Don't know how to convert {repr(v)} to a TensorProto for argument " f"'{arg_name}'" )