class_docstr: List container of DGL.
  
  You do not need to create List explicitly.
  Normally python list and tuple will be converted automatically
  to List during dgl function call.
  You may get List in return values of DGL function call.
class_docstr_tok: ["List","container","of","DGL",".","You","do","not","need","to","create","List","explicitly",".","Normally","python","list","and","tuple","will","be","converted","automatically","to","List","during","dgl","function","call",".","You","may","get","List","in","return","values","of","DGL","function","call","."]
code: def __getitem__(self, i):
      if isinstance(i, slice):
          start = i.start if i.start is not None else 0
          stop = i.stop if i.stop is not None else len(self)
          step = i.step if i.step is not None else 1
          if start < 0:
              start += len(self)
          if stop < 0:
              stop += len(self)
          return [self[idx] for idx in range(start, stop, step)]
  
      if i < -len(self) or i >= len(self):
          raise IndexError(
              "List index out of range. List size: {}, got index {}".format(
                  len(self), i
              )
          )
      if i < 0:
          i += len(self)
      ret = _api_internal._ListGetItem(self, i)
      if isinstance(ret, Value):
          ret = ret.data
      return ret
  
imports: from __future__ import absolute_import
  from .None import _api_internal
  from ._ffi.object import ObjectBase, register_object
  from ._ffi.object_generic import convert_to_object
label_desc: Use image node_id 1 for calling the List obj's underlying member method code with example usage: obj.__getitem__(i) and returns: ret, unknown