code: def split_samples_among_ops(
      op_range_lo: int,
      op_range_hi: int,
      ops: List[Augmentation],
      selected_op_idx: _DataNode,
      op_args,
      op_kwargs,
  ):
      assert op_range_lo <= op_range_hi
      if op_range_lo == op_range_hi:
          return ops[op_range_lo](*op_args, **op_kwargs)
      mid = (op_range_lo + op_range_hi) // 2
      if selected_op_idx <= mid:
          return split_samples_among_ops(
              op_range_lo, mid, ops, selected_op_idx, op_args, op_kwargs
          )
      else:
          return split_samples_among_ops(
              mid + 1,
              op_range_hi,
              ops,
              selected_op_idx,
              op_args,
              op_kwargs,
          )
  
imports: from typing import List
  from nvidia.dali.data_node import DataNode
  from nvidia.dali.auto_aug.core._augmentation import Augmentation
label_desc: Use image node_id 1 for calling a global function with example usage: split_samples_among_ops(op_range_lo, op_range_hi, ops, selected_op_idx, op_args, op_kwargs) and returns: ops, split_samples_among_ops, split_samples_among_ops