(sub_schema, super_schema)
Is sub_schema a subschema of super_schema?

    Parameters
    ----------
    sub_schema: JSON schema
        Left-hand side of subschema check.

    super_schema: JSON schema
        Right-hand side of subschema check.

    Returns
    -------
    bool
        True if `sub_schema <: super_schema`, False otherwise.
Is sub_schema a subschema of super_schema?
Is sub_schema a subschema of super_schema?
def is_subschema(sub_schema, super_schema) -> bool:
    """Is sub_schema a subschema of super_schema?

    Parameters
    ----------
    sub_schema: JSON schema
        Left-hand side of subschema check.

    super_schema: JSON schema
        Right-hand side of subschema check.

    Returns
    -------
    bool
        True if `sub_schema <: super_schema`, False otherwise.
    """
    new_sub = _json_replace(sub_schema, {"laleType": "Any"}, {"not": {}})
    try:
        return jsonsubschema.isSubschema(new_sub, super_schema)
    except Exception as e:
        raise ValueError(
            f"unexpected internal error checking ({new_sub} <: {super_schema})"
        ) from e
def is_subschema ( sub_schema , super_schema ) -> bool : new_sub = _json_replace ( sub_schema , { "laleType" : "Any" } , { "not" : { } } ) try : return jsonsubschema . isSubschema ( new_sub , super_schema ) except Exception as e : raise ValueError ( f"unexpected internal error checking ({new_sub} <: {super_schema})" ) from e