class_docstr: Defines the attributes of an :obj:`GraphStore` edge.
class_docstr_tok: ["Defines","the","attributes","of","an",":","obj",":","`","GraphStore","`","edge","."]
docstr: Cast to a CuGraphTensorAttr from a tuple, list, or dict.
  
  Returns
  -------
  CuGraphTensorAttr
      contains the data of the tuple, list, or dict passed in
docstr_tok: ["Cast","to","a","CuGraphTensorAttr","from","a","tuple",",","list",",","or","dict",".","Returns","--","--","--","-","CuGraphTensorAttr","contains","the","data","of","the","tuple",",","list",",","or","dict","passed","in"]
code: def cast(cls, *args, **kwargs):
      """
      Cast to a CuGraphTensorAttr from a tuple, list, or dict.
  
      Returns
      -------
      CuGraphTensorAttr
          contains the data of the tuple, list, or dict passed in
      """
      if len(args) == 1 and len(kwargs) == 0:
          elem = args[0]
          if elem is None:
              return None
          if isinstance(elem, CuGraphEdgeAttr):
              return elem
          if isinstance(elem, (tuple, list)):
              return cls(*elem)
          if isinstance(elem, dict):
              return cls(**elem)
      return cls(*args, **kwargs)
  
imports: from typing import Optional, Tuple, Any, Union, List, Dict
  from enum import Enum, auto
  from dataclasses import dataclass
  from collections import defaultdict
  from itertools import chain
  from functools import cached_property
  import numpy
  import cupy
  import pandas
  import cudf
  import cugraph
  import warnings
  import dask.array
  import dask.dataframe
  import dask.distributed
  import dask_cudf
  from cugraph.utilities.utils import import_optional, MissingModule
label_desc: Use image node_id 2 for calling the CuGraphEdgeAttr obj's underlying member method code with example usage: obj.cast(cls) and returns: cls, None, elem, cls, cls