class_docstr: Lightweight NDArray class for DGL framework.
code: def __len__(self):
      return functools.reduce(operator.mul, self.shape, 1)
  
imports: from __future__ import absolute_import
  import ctypes
  import functools
  import operator
  import numpy
  from .None import backend
  from ._ffi.function import _init_api
  from ._ffi.ndarray import _set_class_ndarray, context, DGLContext, DGLDataType, empty, empty_shared_mem, from_dlpack, NDArrayBase, numpyasarray
  from ._ffi.object import ObjectBase, register_object
label_desc: Use image node_id 1 for calling the NDArray obj's underlying member method code with example usage: obj.__len__() and returns: functools