def METHOD_NAME(
    part_name, part_schema, definitions_schema, properties, plugin_schema
):
    # Make copies as these dictionaries are tampered with
    part_schema = part_schema.copy()
    properties = properties.copy()
    plugin_schema = _merged_part_and_plugin_schemas(
        part_schema, definitions_schema, plugin_schema
    )
    try:
        jsonschema.validate(properties, plugin_schema)
    except jsonschema.ValidationError as e:
        error = snapcraft_legacy.yaml_utils.errors.YamlValidationError.from_validation_error(
            e
        )
        raise errors.PluginError(
            "properties failed to load for {}: {}".format(part_name, error.message)
        )
    return _populate_options(properties, plugin_schema)