code: def _parse_args():
      
      parser = argparse.ArgumentParser(description='{} service.'.
                                       format(__service_id__))
      parser.add_argument('--random_errors', action='store_true',
                          help='Enable random errors')
      parser.add_argument('-v', action='store_true',
                          help='Verbose mode (enable debug printing)')
      parser.add_argument('-vv', action='store_true', help='Extra verbose mode')
      args = parser.parse_args()
  
      if args.vv:
          init_logger(log_level='DEBUG', show_log_origin=True)
      elif args.v:
          init_logger(logger_name='sip.ec.master_controller', log_level='DEBUG')
      else:
          init_logger(log_level='INFO')
  
      return args
docs: Command line parser.