def METHOD_NAME(remove_defaults: bool) -> None:
    eth_v6: TStoredSchema = load_yml_case("schemas/eth/ethereum_schema_v6")
    schema = Schema.from_dict(eth_v6)
    to_save_dict = schema.to_dict(remove_defaults=remove_defaults)
    assert schema.stored_version == to_save_dict["version"]
    assert schema.stored_version_hash == to_save_dict["version_hash"]
    saved_schema = Schema.from_dict(to_save_dict)
    # stored hashes must match
    assert saved_schema.stored_version == schema.stored_version
    assert saved_schema.stored_version_hash == schema.stored_version_hash
    # recomputed hashes must match
    assert saved_schema.version == schema.stored_version
    assert saved_schema.version_hash == schema.stored_version_hash
    # serialize as json
    eth_json = schema.to_pretty_json(remove_defaults=remove_defaults)
    saved_schema = Schema.from_dict(json.loads(eth_json))
    assert saved_schema.stored_version == schema.stored_version
    assert saved_schema.stored_version_hash == schema.stored_version_hash
    # serialize as yaml, for that use a schema that was stored in json
    rasa_v4: TStoredSchema = load_json_case("schemas/rasa/event.schema")
    rasa_schema = Schema.from_dict(rasa_v4)
    rasa_yml = rasa_schema.to_pretty_yaml(remove_defaults=remove_defaults)
    saved_rasa_schema = Schema.from_dict(yaml.safe_load(rasa_yml))
    assert saved_rasa_schema.stored_version == rasa_schema.stored_version
    assert saved_rasa_schema.stored_version_hash == rasa_schema.stored_version_hash