class_docstr: Recipe which converts the graph model config to train and predict graph.
docstr: Converts the default config to graphs (see interface for full docstring).
docstr_tok: ["Converts","the","default","config","to","graphs","(","see","interface","for","full","docstring",")","."]
code: def graph_config_for_recipe(
      self,
      config: Dict,
      cli_parameters: Dict[Text, Any],
      training_type: TrainingType = TrainingType.BOTH,
      is_finetuning: bool = False,
  ) -> GraphModelConfiguration:
      """Converts the default config to graphs (see interface for full docstring)."""
      mark_as_experimental_feature("graph recipe")
      if cli_parameters or is_finetuning:
          raise_warning(
              "Unlike the Default Recipe, Graph Recipe does not utilize CLI "
              "parameters or finetuning and these configurations will be ignored. "
              "Add configuration to the recipe itself if you want them to be used.",
              docs=DOCS_URL_GRAPH_RECIPE,
          )
  
      nlu_target, core_target = self.get_targets(config, training_type)
  
      return GraphModelConfiguration(
          train_schema=GraphSchema.from_dict(
              config.get("train_schema")
          ),
          predict_schema=GraphSchema.from_dict(
              config.get("predict_schema")
          ),
          training_type=training_type,
          assistant_id=config.get(ASSISTANT_ID_KEY),
          language=config.get("language"),
          spaces=config.get("spaces"),
          core_target=core_target,
          nlu_target=nlu_target,
      )
  
file_path: rasa/rasa/engine/recipes/graph_recipe.py
imports: import logging
  from rasa.engine.recipes.recipe import Recipe
  from rasa.engine.graph import GraphModelConfiguration
  from rasa.shared.constants import DOCS_URL_GRAPH_RECIPE, ASSISTANT_ID_KEY
  from rasa.shared.data import TrainingType
  from rasa.shared.exceptions import InvalidConfigException
  from rasa.shared.utils.common import mark_as_experimental_feature
  from rasa.shared.utils.io import raise_warning
  from rasa.engine.graph import GraphSchema
  from typing import Dict, Text, Any, Tuple
label_desc: Use image node_id 2 for calling the GraphV1Recipe obj's underlying member method code with example usage: obj.graph_config_for_recipe(config, cli_parameters, training_type, is_finetuning) and returns: GraphModelConfiguration