def METHOD_NAME(
    cls,
    data: Optional[Dict] = None,
    yaml_path: Optional[Union[PathLike, str]] = None,
    params_override: Optional[list] = None,
    **kwargs,
) -> "Code":
    data = data or {}
    params_override = params_override or []
    context = {
        BASE_PATH_CONTEXT_KEY: Path(yaml_path).parent if yaml_path else Path("./"),
        PARAMS_OVERRIDE_KEY: params_override,
    }
    return load_from_dict(CodeAssetSchema, data, context, **kwargs)