code: def from_str(value: str) -> DataFusionPipelineType:
      value_to_item = {
          item.value: item for item in DataFusionPipelineType
      }
      if value in value_to_item:
          return value_to_item[value]
      raise ValueError(
          f"Invalid value '{value}'. Valid values are: {[i for i in value_to_item.keys()]}"
      )
  
imports: from __future__ import annotations
  from enum import Enum
label_desc: Use image node_id 1 for calling the DataFusionPipelineType obj's underlying member method code with example usage: obj.from_str(value) and returns: value_to_item