code: def execute(options):
      
      # Load the key in PKCS 12 format that you downloaded from the Google APIs
      # Console when you created your Service account.
      package_name = options['<package>']
      source_directory = options['<output_dir>']
  
      if options['upload'] is True:
          upstream = True
      else:
          upstream = False
  
      sub_tasks = {'images': options['--images'], 'listings': options['--listings'], 'inapp': options['--inapp']}
      if sub_tasks == {'images': False, 'listings': False, 'inapp': False}:
          sub_tasks = {'images': True, 'listings': True, 'inapp': True}
  
      credentials = create_credentials(credentials_file=options['--credentials'],
                                       service_email=options['--service-email'],
                                       service_key=options['--key'])
  
      command = SyncCommand(
          package_name, source_directory, upstream, credentials, **sub_tasks)
      command.execute()
docs: execute the tool with given options.