class_docstr: Provides slots and loops that are only used in rules to other policies.
  
  Policies can use this to exclude features which are only used by rules from the
  featurization.
docstr: Creates component (see parent class for docstring).
code: def create(
      cls,
      config: Dict[Text, Any],
      model_storage: ModelStorage,
      resource: Resource,
      execution_context: ExecutionContext,
  ) -> RuleOnlyDataProvider:
      """Creates component (see parent class for docstring)."""
      rule_only_data = {}
      try:
          with model_storage.read_from(resource) as directory:
              rule_only_data = rasa.shared.utils.io.read_json_file(
                  directory / "rule_only_data.json"
              )
      except ValueError:
          logger.debug(
              "Failed to load rule-only data from a trained 'RulePolicy'. "
              "Providing empty rule-only data instead."
          )
  
      return cls(rule_only_data)
  
file_path: rasa/rasa/graph_components/providers/rule_only_provider.py
imports: from __future__ import annotations
  import dataclasses
  import logging
  from typing import Dict, Text, Any
  import rasa.shared.utils.io
  from rasa.engine.graph import GraphComponent, ExecutionContext
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
label_desc: Use image node_id 1 for calling the RuleOnlyDataProvider obj's underlying member method code with example usage: obj.create(cls, config, model_storage, resource, execution_context) and returns: cls