code: def handle_new_config(args):
      
      config = cosmic_ray.commands.new_config()
      config_str = serialize_config(config)
      with open(args['<config-file>'], mode='wt') as handle:
          handle.write(config_str)
  
      return ExitCode.OK
docs: usage: cosmic-ray new-config <config-file>
  
      Create a new config file.