code: def classic_mode(
      mutable_id,
      mutable_layer_id,
      funcs,
      funcs_args,
      fixed_inputs,
      optional_inputs,
      optional_input_size,
  ):
      """Execute the chosen function and inputs directly.
      In this mode, the trial code is only running the chosen subgraph (i.e., the chosen ops and inputs),
      without touching the full model graph."""
      if trial.get_current_parameter() is None:
          trial.get_next_parameter()
  
      chosen_layer, chosen_inputs = _get_layer_and_inputs_from_tuner(
          mutable_id, mutable_layer_id, list(optional_inputs.keys())
      )
      real_chosen_inputs = [
          optional_inputs[input_name] for input_name in chosen_inputs
      ]
      layer_out = funcs[chosen_layer](
          [fixed_inputs, real_chosen_inputs], **funcs_args[chosen_layer]
      )
  
      return layer_out
  
file_path: nni/nni/common/nas_utils.py
imports: import functools
  import logging
  from ..None import trial
label_desc: Use image node_id 1 for calling a global function with example usage: classic_mode(mutable_id, mutable_layer_id, funcs, funcs_args, fixed_inputs, optional_inputs, optional_input_size) and returns: layer_out