docstr: Reshape inputs to expected shape.
docstr_tok: ["Reshape","inputs","to","expected","shape","."]
code: def reshape(images: np.ndarray) -> np.ndarray:
      """
      Reshape inputs to expected shape.
      """
      if images.ndim == 3:
          images = images[..., None]
  
      return images.transpose(0, 3, 1, 2)
  
imports: import warnings
  from typing import List, Optional, Union
  import numpy
  import PIL
  import torch
  from diffusers import ConfigMixin
  from diffusers.image_processor import VaeImageProcessor
  from diffusers.utils.pil_utils import PIL_INTERPOLATION
  from PIL import Image
  from tqdm.auto import tqdm
label_desc: Use image node_id 7 for calling the VaeImageProcessor obj's underlying member method code with example usage: obj.reshape(images) and returns: images