class_docstr: Fallback to NumPy resize operator.
class_docstr_tok: ["Fallback","to","NumPy","resize","operator","."]
code: def forward(self, is_train, req, in_data, out_data, aux):
      out = np.resize(in_data[0].asnumpy(), self._new_shape)
      self.assign(
          out_data[0],
          req[0],
          _mx_np.array(out, dtype=out.dtype, device=out_data[0].device),
      )
  
imports: from distutils.version import StrictVersion
  import functools
  import ast
  import numpy
  from .None import operator
  from .None import numpy
  from .util import np_array, use_np
  from .numpy.utils import _STR_2_DTYPE_
  from .ndarray.numpy import _internal
  from .symbol.numpy import _internal
label_desc: Use image node_id 2 for calling the Resize obj's underlying member method code with example usage: obj.forward(is_train, req, in_data, out_data, aux) without return types