sandbox/utils.py
def parse_result_path(config: dict) -> Optional[str]:
    """Check the validity of 'result' in the request and return it, returns None if it is not
    present."""
    if "result_path" in config:
        if not isinstance(config["result_path"], str):
            raise HTTPExceptions.BAD_REQUEST.with_content(
                f'result_path must be a string, not {type(config["result_path"])}')
        return config["result_path"]
    return None
Check the validity of 'result' in the request and return it, returns None if it is not
    present.
Check the validity of 'result' in the request and return it, returns None if it is not
present.
Check the validity of ' result ' in the request and return it returns None if it is not present .
def parse_result_path(config: dict) -> Optional[str]:
    if "result_path" in config:
        if not isinstance(config["result_path"], str):
            raise HTTPExceptions.BAD_REQUEST.with_content(
                f'result_path must be a string, not {type(config["result_path"])}')
        return config["result_path"]
    return None
def parse_result_path ( config : dict ) -> Optional [ str ] : if "result_path" in config : if not isinstance ( config [ "result_path" ] , str ) : raise HTTPExceptions . BAD_REQUEST . with_content ( f'result_path must be a string, not {type(config["result_path"])}' ) return config [ "result_path" ] return None
Check the validity of 'result' in the request and return it, returns None if it is not
present.
Check the validity of ' result ' in the request and return it returns None if it is not present .
"""Check the validity of 'result' in the request and return it, returns None if it is not
    present."""
config
dict