code: def main():
      
      # Create simulation object, and start streaming SPEAD heaps
      sender = PulsarSender()
  
      # Parse command line arguments
      args = parse_command_line()
  
      # Initialise logging.
      _log = _init_log(level=logging.DEBUG if args.verbose else logging.INFO)
  
      # Load configuration.
      _log.info('Loading config: %s', args.config_file.name)
      _config = json.load(args.config_file)
      if args.print_settings:
          _log.debug('Settings:\n %s', json.dumps(_config, indent=4,
                                                  sort_keys=True))
      sender.send(_config, _log, 1, 1)
docs: Main script function