code: def arm_name_to_tuple(
      arm_name: str,
  ) -> Union[Tuple[int, int], Tuple[int]]:
      tup = arm_name.split("_")
      if len(tup) == 2:
          try:
              return (int(tup[0]), int(tup[1]))
          except ValueError:
              return (0,)
      return (0,)
  
imports: import math
  from collections import Counter
  from logging import Logger
  from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
  import numpy
  from ax.core.generator_run import GeneratorRun
  from ax.core.observation import Observation, ObservationFeatures
  from ax.core.parameter import ChoiceParameter, FixedParameter, Parameter, ParameterType, RangeParameter
  from ax.core.types import TParameterization
  from ax.modelbridge.base import ModelBridge
  from ax.modelbridge.prediction_utils import _compute_scalarized_outcome, predict_at_point
  from ax.modelbridge.transforms.ivw import IVW
  from ax.plot.base import DECIMALS, PlotData, PlotInSampleArm, PlotOutOfSampleArm, Z
  from ax.utils.common.logger import get_logger
  from ax.utils.common.typeutils import not_none
label_desc: Use image node_id 5 for calling a global function with example usage: arm_name_to_tuple(arm_name) and returns: int, int,  int, int