code: def __init__(
      self,
      stats,
      feature,
      feature_values,
      depth,
      *children,
      **attributes,
  ):
      super().__init__(stats, *children, **attributes)
      self.feature = feature
      self.depth = depth
  
      # Controls the branch mapping
      self._mapping = {
          feat_v: i for i, feat_v in enumerate(feature_values)
      }
      self._r_mapping = {
          i: feat_v for feat_v, i in self._mapping.items()
      }
  
imports: from __future__ import annotations
  import abc
  import math
  from ..base import Branch
label_desc: Use image node_id 1 to create a new NominalMultiwayBranch object from inherited base classes: DTBranch with example: obj = NominalMultiwayBranch(stats, feature, feature_values, depth)