def RefreshTokenStats(flags):
  arg_list = []
  for flag_value, flag_string in [
      (flags.apps_domain, '--apps_domain=%s' % flags.apps_domain),
      (flags.force, '--force'),
      (flags.verbose, '--verbose')]:
    if flag_value:
      arg_list.append(flag_string)
  try:
    with log_utils.Timer('gather_domain_token_stats.py'):
      cmd_utils.RunPyCmd('gather_domain_token_stats.py', arg_list)
  except admin_api_tool_errors.AdminAPIToolCmdError as e:
    log_utils.LogError('Unable to gather token records.', e)
    sys.exit(1)
Writes a file with all the domain token information.
dataset/ETHPy150Open google/gfw-toolkit/toolkit/cmds/revoke_unapproved_tokens.py/RefreshTokenStats