code: def _apply_layered_relation_to_rison(  # pylint: disable=invalid-name
      layer_id: int, rison_parameters: dict[str, Any]
  ) -> None:
      if "filters" not in rison_parameters:
          rison_parameters["filters"] = []
      rison_parameters["filters"].append(
          {"col": "layer", "opr": "rel_o_m", "value": layer_id}
      )
  
imports: import logging
  from typing import Any
  from flask import request, Response
  from flask_appbuilder.api import expose, permission_name, protect, rison, safe
  from flask_appbuilder.api.schemas import get_item_schema, get_list_schema
  from flask_appbuilder.models.sqla.interface import SQLAInterface
  from flask_babel import ngettext
  from marshmallow import ValidationError
  from superset.annotation_layers.annotations.filters import AnnotationAllTextFilter
  from superset.annotation_layers.annotations.schemas import AnnotationPostSchema, AnnotationPutSchema, get_delete_ids_schema, openapi_spec_methods_override
  from superset.commands.annotation_layer.annotation.create import CreateAnnotationCommand
  from superset.commands.annotation_layer.annotation.delete import DeleteAnnotationCommand
  from superset.commands.annotation_layer.annotation.exceptions import AnnotationCreateFailedError, AnnotationDeleteFailedError, AnnotationInvalidError, AnnotationNotFoundError, AnnotationUpdateFailedError
  from superset.commands.annotation_layer.annotation.update import UpdateAnnotationCommand
  from superset.commands.annotation_layer.exceptions import AnnotationLayerNotFoundError
  from superset.constants import MODEL_API_RW_METHOD_PERMISSION_MAP, RouteMethod
  from superset.models.annotations import Annotation
  from superset.views.base_api import BaseSupersetModelRestApi, requires_json, statsd_metrics
label_desc: Use image node_id 1 for calling the AnnotationRestApi obj's underlying member method code with example usage: obj._apply_layered_relation_to_rison(layer_id, rison_parameters) without return types