def _process_patch_method(method: str) -> Tuple[str, dict]:
    """processes a method 'url' into the base method and paramters

    Args:
        method (str): 'simple', 'simple?hn=3', 'overlap', 'overlap?hn=3&wn=4'

    Raises:
        ChunkerMethodProcessError: _description_

    Returns:
        Tuple[str, dict]: _description_
    """
    req = requests.utils.urlparse(method)
    query = req.query
    path = req.path

    params = dict()

    if len(query) == 0:
        return path, params

    try:
        params = dict(x.split('=') for x in query.split('&'))
    except: 
        raise ChunkerMethodProcessError(message=f"could not pass parameters for string {query} from full path {method}")

    return path, params
processes a method 'url' into the base method and paramters

    Args:
        method (str): 'simple', 'simple?hn=3', 'overlap', 'overlap?hn=3&wn=4'

    Raises:
        ChunkerMethodProcessError: _description_

    Returns:
        Tuple[str, dict]: _description_
    
src/marqo/s2_inference/processing/image_utils.py