code: def scale_coords(coords, scale):
      if isinstance(scale, (tuple, list, np.ndarray)):
          assert len(scale) == len(coords)
          for i in range(len(scale)):
              coords[i] *= scale[i]
      else:
          coords *= scale
      return coords
  
imports: import random
  import numpy
  import paddle
  from paddle.nn.functional import avg_pool2d, avg_pool3d
  from typing import List, Tuple, Union, Callable
  from copy import deepcopy
  from scipy.ndimage import map_coordinates, fourier_gaussian
  from scipy.ndimage.filters import gaussian_filter, gaussian_gradient_magnitude
  from scipy.ndimage.morphology import grey_dilation
  from skimage.transform import resize
  from scipy.ndimage.measurements import label
label_desc: Use image node_id 24 for calling a global function with example usage: scale_coords(coords, scale) and returns: coords