code: def check_args(parsed_args):
      """Function to check for inherent contradictions within parsed arguments.
      For example, batch_size < num_gpus
      Intended to raise errors prior to backend initialisation.
  
      Args
          parsed_args: parser.parse_args()
  
      Returns
          parsed_args
      """
  
      if (
          parsed_args.multi_gpu > 1
          and parsed_args.batch_size < parsed_args.multi_gpu
      ):
          raise ValueError(
              "Batch size ({}) must be equal to or higher than the number of GPUs ({})".format(
                  parsed_args.batch_size, parsed_args.multi_gpu
              )
          )
  
      if parsed_args.multi_gpu > 1 and parsed_args.snapshot:
          raise ValueError(
              "Multi GPU training ({}) and resuming from snapshots ({}) is not supported.".format(
                  parsed_args.multi_gpu, parsed_args.snapshot
              )
          )
  
      if parsed_args.multi_gpu > 1 and not parsed_args.multi_gpu_force:
          raise ValueError(
              "Multi-GPU support is experimental, use at own risk! Run with --multi-gpu-force if you wish to continue."
          )
  
      if "resnet" not in parsed_args.backbone:
          warnings.warn(
              "Using experimental backbone {}. Only resnet50 has been properly tested.".format(
                  parsed_args.backbone
              )
          )
  
      return parsed_args
  
imports: import argparse
  import os
  import sys
  import warnings
  from tensorflow import keras
  import tensorflow
  from ..None import layers
  from ..None import losses
  from ..None import models
  from ..callbacks import RedirectModel
  from ..callbacks.eval import Evaluate
  from ..models.retinanet import retinanet_bbox
  from ..preprocessing.csv_generator import CSVGenerator
  from ..preprocessing.kitti import KittiGenerator
  from ..preprocessing.open_images import OpenImagesGenerator
  from ..preprocessing.pascal_voc import PascalVocGenerator
  from ..utils.anchors import make_shapes_callback
  from ..utils.config import read_config_file, parse_anchor_parameters, parse_pyramid_levels
  from ..utils.gpu import setup_gpu
  from ..utils.image import random_visual_effect_generator
  from ..utils.model import freeze
  from ..utils.tf_version import check_tf_version
  from ..utils.transform import random_transform_generator
label_desc: Use image node_id 6 for calling a global function with example usage: check_args(parsed_args) and returns: parsed_args