code: def attach_parameter(parameter: data_types.RuntimeParameter):
      """Attaches a runtime parameter to the current context."""
      if not hasattr(_thread_local, "parameter_list"):
          raise RuntimeError(
              "attach_parameter() must run under ParameterContext."
          )
  
      _thread_local.parameter_list.append(parameter)
  
imports: import threading
  from tfx.orchestration import data_types
label_desc: Use image node_id 1 for calling a global function with example usage: attach_parameter(parameter) without return types