class_docstr: The data view class when G.edata[etype] is called.
class_docstr_tok: ["The","data","view","class","when","G.edata","[","etype","]","is","called","."]
code: def __getitem__(self, key):
      if isinstance(self._etype, list):
          ret = {}
          for i, etype in enumerate(self._etype):
              value = self._graph._get_e_repr(
                  self._etid[i], self._edges
              ).get(key, None)
              if value is not None:
                  ret[etype] = value
          return ret
      else:
          return self._graph._get_e_repr(self._etid, self._edges)[key]
  
imports: from __future__ import absolute_import
  from collections import defaultdict, namedtuple
  from collections.abc import MutableMapping
  from .None import backend
  from .base import ALL, DGLError
  from .frame import LazyFeature
label_desc: Use image node_id 2 for calling the HeteroEdgeDataView obj's underlying member method code with example usage: obj.__getitem__(key) and returns: ret, self