code: def do_batch_status(args):
      
      rest_client = RestClient(args.url, args.user)
      batch_ids = args.batch_ids.split(',')
  
      if args.wait and args.wait > 0:
          statuses = rest_client.get_statuses(batch_ids, args.wait)
      else:
          statuses = rest_client.get_statuses(batch_ids)
  
      if args.format == 'yaml':
          fmt.print_yaml(statuses)
      elif args.format == 'json':
          fmt.print_json(statuses)
      else:
          raise AssertionError('Missing handler: {}'.format(args.format))
docs: Runs the batch-status command, printing output to the console
  
          Args:
              args: The parsed arguments sent to the command at runtime