def METHOD_NAME(custom_detectors: List[Dict[str, Any]], code: str, secret_policy: Dict[str, Any],
                            check_id: str) -> bool:
    parsed = False
    code_dict = yaml.safe_load(code)
    if 'definition' in code_dict:
        if 'value' in code_dict['definition'] and 'is_runnable' not in code_dict['definition']:
            parsed = True
            if type(code_dict['definition']['value']) is str:
                code_dict['definition']['value'] = [code_dict['definition']['value']]
            for regex in code_dict['definition']['value']:
                add_to_custom_detectors(
                    custom_detectors,
                    secret_policy['title'],
                    check_id,
                    regex,
                    secret_policy['isCustom'],
                    code_dict['definition'].get("multiline", False),
                    code_dict['definition'].get("supported_files", [])
                )
    return parsed