parameters: (x, op_name, arg_name)
docstring: check whether x is list or tuple or tensor.
docstring_summary: check whether x is list or tuple or tensor.
docstring_tokens: check whether x is list or tuple or tensor .
function: def check_is_tuple_or_list_or_tensor(x, op_name, arg_name):
      """check whether x is list or tuple or tensor."""
      if isinstance(x, (mstype.List, mstype.Tuple, mstype.tensor_type)):
          return True
      raise TypeError(f"For '{op_name}', the '{arg_name}' should be tuple or list or tensor, but got {x}.")
function_tokens: def check_is_tuple_or_list_or_tensor ( x , op_name , arg_name ) : if isinstance ( x , ( mstype . List , mstype . Tuple , mstype . tensor_type ) ) : return True raise TypeError ( f"For '{op_name}', the '{arg_name}' should be tuple or list or tensor, but got {x}." )