code: def __init__(
      self,
      *split_adapters: List[Union[AdapterCompositionBlock, str]],
      batch_sizes: Union[List[int], int],
  ):
      super().__init__(*split_adapters)
      self.batch_sizes = (
          batch_sizes
          if isinstance(batch_sizes, list)
          else [batch_sizes] * len(split_adapters)
      )
  
imports: import itertools
  from collections.abc import Sequence
  from typing import List, Optional, Set, Tuple, Union
  import torch
label_desc: Use image node_id 1 to create a new BatchSplit object from inherited base classes: AdapterCompositionBlock with example: obj = BatchSplit()