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": "report_schedule",
              "opr": "rel_o_m",
              "value": layer_id,
          }
      )
  
file_path: superset/superset/reports/logs/api.py
imports: import logging
  from typing import Any, Optional
  from flask import 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.hooks import before_request
  from flask_appbuilder.models.sqla.interface import SQLAInterface
  from superset import is_feature_enabled
  from superset.constants import MODEL_API_RW_METHOD_PERMISSION_MAP, RouteMethod
  from superset.reports.logs.schemas import openapi_spec_methods_override
  from superset.reports.models import ReportExecutionLog
  from superset.views.base_api import BaseSupersetModelRestApi
label_desc: Use image node_id 2 for calling the ReportExecutionLogRestApi obj's underlying member method code with example usage: obj._apply_layered_relation_to_rison(layer_id, rison_parameters) without return types