code: def squared_euclidean_distance(a, b):
      b = b.T
      a2 = np.sum(np.square(a), axis=1)
      b2 = np.sum(np.square(b), axis=0)
      ab = np.matmul(a, b)
      d = a2[:, None] - 2 * ab + b2[None, :]
      return d
  
file_path: transformers/src/transformers/models/imagegpt/image_processing_imagegpt.py
imports: from typing import Dict, List, Optional, Union
  import numpy
  from ...image_processing_utils import BaseImageProcessor, BatchFeature, get_size_dict
  from ...image_transforms import rescale, resize, to_channel_dimension_format
  from ...image_utils import ChannelDimension, ImageInput, PILImageResampling, infer_channel_dimension_format, is_scaled_image, make_list_of_images, to_numpy_array, valid_images
  from ...utils import TensorType, is_vision_available, logging
label_desc: Use image node_id 1 for calling a global function with example usage: squared_euclidean_distance(a, b) and returns: d