code: def bbox_to_dimensions(bbox, resolution):
      
      utm_bbox = to_utm_bbox(bbox)
      east1, north1 = utm_bbox.lower_left
      east2, north2 = utm_bbox.upper_right
  
      resx, resy = resolution if isinstance(resolution, tuple) else (resolution, resolution)
  
      return round(abs(east2 - east1) / resx), round(abs(north2 - north1) / resy)
docs: Calculates width and height in pixels for a given bbox of a given pixel resolution (in meters). The result is
      rounded to nearest integers
  
      :param bbox: bounding box
      :type bbox: geometry.BBox
      :param resolution: Resolution of desired image in meters. It can be a single number or a tuple of two numbers -
      resolution in horizontal and resolution in vertical direction.
      :type resolution: float or (float, float)
      :return: width and height in pixels for given bounding box and pixel resolution
      :rtype: int, int