code: def set_common_defaults(
      opts: argparse.Namespace,
      batch_size: Optional[int] = DEFAULT_BATCH_SIZE,
  ) -> None:
      """Set common default values for all samplers."""
      setattr(opts, "dataset.train_batch_size0", batch_size)
  
file_path: ml-cvnets/tests/data/samplers/test_data_samplers.py
imports: import argparse
  from typing import Optional
  import numpy
  import pytest
  from data.sampler import build_sampler
  from tests.configs import get_config
label_desc: Use image node_id 1 for calling a global function with example usage: set_common_defaults(opts, batch_size) without return types