parameters: (np_img, i, j, height, width, erase_value, inplace=False)
return_statement: return np_img
docstring: Erase the pixels, within a selected rectangle region, to the given value. Applied on the input NumPy image array.
  
      Args:
          np_img (numpy.ndarray): NumPy image array of shape (C, H, W) to be erased.
          i (int): The height component of the top left corner (height, width).
          j (int): The width component of the top left corner (height, width).
          height (int): Height of the erased region.
          width (int): Width of the erased region.
          erase_value: Erase value return from helper function get_erase_params().
          inplace (bool, optional): Apply this transform inplace. Default is False.
  
      Returns:
          np_img (numpy.ndarray), Erased NumPy image array.
docstring_summary: Erase the pixels, within a selected rectangle region, to the given value. Applied on the input NumPy image array.
docstring_tokens: Erase the pixels within a selected rectangle region to the given value . Applied on the input NumPy image array .
function: def erase(np_img, i, j, height, width, erase_value, inplace=False):
      """
      Erase the pixels, within a selected rectangle region, to the given value. Applied on the input NumPy image array.
  
      Args:
          np_img (numpy.ndarray): NumPy image array of shape (C, H, W) to be erased.
          i (int): The height component of the top left corner (height, width).
          j (int): The width component of the top left corner (height, width).
          height (int): Height of the erased region.
          width (int): Width of the erased region.
          erase_value: Erase value return from helper function get_erase_params().
          inplace (bool, optional): Apply this transform inplace. Default is False.
  
      Returns:
          np_img (numpy.ndarray), Erased NumPy image array.
      """
      if not is_numpy(np_img):
          raise TypeError('img should be NumPy array. Got {}.'.format(type(np_img)))
  
      if not inplace:
          np_img = np_img.copy()
      # (i, j) here are the coordinates of axes (height, width) as in CHW
      np_img[:, i:i + height, j:j + width] = erase_value
      return np_img
function_tokens: def erase ( np_img , i , j , height , width , erase_value , inplace = False ) : if not is_numpy ( np_img ) : raise TypeError ( 'img should be NumPy array. Got {}.' . format ( type ( np_img ) ) ) if not inplace : np_img = np_img . copy ( ) # (i, j) here are the coordinates of axes (height, width) as in CHW np_img [ : , i : i + height , j : j + width ] = erase_value return np_img