code: def get_auto_slice_params(
      height: int, width: int
  ) -> Tuple[int, int, int, int]:
      """
      According to Image HxW calculate overlap sliding window and buffer params
      factor is the power value of 2 closest to the image resolution.
          factor <= 18: low resolution image such as 300x300, 640x640
          18 < factor <= 21: medium resolution image such as 1024x1024, 1336x960
          21 < factor <= 24: high resolution image such as 2048x2048, 2048x4096, 4096x4096
          factor > 24: ultra-high resolution image such as 6380x6380, 4096x8192
      Args:
          height:
          width:
  
      Returns:
          slicing overlap params x_overlap, y_overlap, slice_width, slice_height
      """
      resolution = height * width
      factor = calc_resolution_factor(resolution)
      if factor <= 18:
          return get_resolution_selector(
              "low", height=height, width=width
          )
      elif 18 <= factor < 21:
          return get_resolution_selector(
              "medium", height=height, width=width
          )
      elif 21 <= factor < 24:
          return get_resolution_selector(
              "high", height=height, width=width
          )
      else:
          return get_resolution_selector(
              "ultra-high", height=height, width=width
          )
  
imports: import concurrent.futures
  import logging
  import os
  import time
  from pathlib import Path
  from typing import Dict, List, Optional, Sequence, Tuple, Union
  import numpy
  from PIL import Image
  from shapely.errors import TopologicalError
  from tqdm import tqdm
  from sahi.annotation import BoundingBox, Mask
  from sahi.utils.coco import Coco, CocoAnnotation, CocoImage, create_coco_dict
  from sahi.utils.cv import IMAGE_EXTENSIONS_LOSSLESS, IMAGE_EXTENSIONS_LOSSY, read_image_as_pil
  from sahi.utils.file import load_json, save_json
label_desc: Use image node_id 11 for calling a global function with example usage: get_auto_slice_params(height, width) and returns: get_resolution_selector, get_resolution_selector, get_resolution_selector, get_resolution_selector