code: def reshape(blob, shape):
      """Reshape the blob."""
      if not type(blob) is Blob:
          raise ValueError("`blob` must be neoml.Blob.")
  
      if blob.size == 0:
          raise ValueError("The blobs mustn't be empty.")
  
      np_shape = numpy.array(shape, dtype=numpy.int32, copy=False)
  
      if len(np_shape) > 7:
          raise ValueError(
              "The `shape` should have not more than 7 dimensions."
          )
  
      if numpy.prod(np_shape) != blob.size:
          raise ValueError("`shape` is incompatible with current size.")
  
      PythonWrapper.blob_reshape(blob._internal, np_shape)
  
imports: import neoml
  import neoml.PythonWrapper
  from neoml.MathEngine import MathEngine
  from neoml.Blob import Blob
  import numpy
label_desc: Use image node_id 17 for calling a global function with example usage: reshape(blob, shape) without return types