code: def set_field(config, name, value):
      if name == "num_warps":
          config.num_warps = value
      elif name == "num_stages":
          config.num_stages = value
      else:
          config.kwargs[name] = value
  
imports: import copy
  import itertools
  import logging
  from typing import Callable, Optional
  from torch.utils._triton import has_triton
  from .utils import red_text, triton_config_to_hashable
  from .None import config
label_desc: Use image node_id 2 for calling a global function with example usage: set_field(config, name, value) without return types