code: def _feature_to_transform_feature(
      feature: LiteFeature,
      base_features: List[FeatureBase],
  ) -> FeatureBase:
      """
      Transform LiteFeature into FeatureBase object. Handles the Multi-output
      feature in correct way.
  
      Args:
          feature (LiteFeature)
          base_features (List[FeatureBase])
  
      Returns:
         FeatureBase
      """
      assert feature.primitive
  
      assert isinstance(
          feature.primitive,
          TransformPrimitive,
      ), "Only Transform Primitives"
  
      fb = TransformFeature(base_features, feature.primitive)
      if feature.is_multioutput():
          sorted_features = sorted(
              [f for f in feature.related_features] + [feature],
              key=lambda x: x.idx,
          )
          names = [x.name for x in sorted_features]
  
          fb = fb.rename(feature.non_indexed_name)
          fb.set_feature_names(names)
      else:
          fb = fb.rename(feature.name)
  
      return fb
  
file_path: featuretools/featuretools/feature_discovery/convertors.py
imports: from __future__ import annotations
  from typing import Dict, List
  import pandas
  from woodwork.logical_types import LogicalType
  from featuretools.feature_base.feature_base import FeatureBase, IdentityFeature, TransformFeature
  from featuretools.feature_discovery.LiteFeature import LiteFeature
  from featuretools.primitives import TransformPrimitive
  from featuretools.primitives.base.primitive_base import PrimitiveBase
label_desc: Use image node_id 2 for calling a global function with example usage: _feature_to_transform_feature(feature, base_features) and returns: fb