code: def scale(boxlist, y_scale, x_scale):
      """Scale box coordinates in x and y dimensions.
  
      Args:
        boxlist: BoxList holding N boxes
        y_scale: float
        x_scale: float
  
      Returns:
        boxlist: BoxList holding N boxes
      """
      y_min, x_min, y_max, x_max = np.array_split(
          boxlist.get(), 4, axis=1
      )
      y_min = y_scale * y_min
      y_max = y_scale * y_max
      x_min = x_scale * x_min
      x_max = x_scale * x_max
      scaled_boxlist = np_box_list.BoxList(
          np.hstack([y_min, x_min, y_max, x_max])
      )
  
      fields = boxlist.get_extra_fields()
      for field in fields:
          extra_field_data = boxlist.get_field(field)
          scaled_boxlist.add_field(field, extra_field_data)
  
      return scaled_boxlist
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import numpy
  from .None import np_box_list, np_box_ops
label_desc: Use image node_id 9 for calling a global function with example usage: scale(boxlist, y_scale, x_scale) and returns: scaled_boxlist