code: def candidate_step_cast(request):
      """Processing method applied to `candidate` to produce the candidate steps passed to
      :func:`~hyperparameter_hunter.result_reader.validate_fe_steps`. May be either 1) instantiation
      as a `FeatureEngineer` (which is how `template` is processed), or 2) result of invoking
      :meth:`~hyperparameter_hunter.feature_engineering.FeatureEngineer.get_key_data` on the
      former, then taking its "steps" value. The second method produces a list of
      `EngineerStep`-like dicts, which more closely resembles a candidate retrieved from a saved
      Experiment result description file"""
      return request.param
  
file_path: hyperparameter_hunter/tests/test_i_o/test_result_reader.py
imports: from hyperparameter_hunter import FeatureEngineer, Categorical
  from hyperparameter_hunter.i_o.exceptions import IncompatibleCandidateError
  from hyperparameter_hunter.i_o.result_reader import validate_fe_steps
  from hyperparameter_hunter.space.dimensions import RejectedOptional
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: candidate_step_cast(request) and returns: request