parameters: ()
return_statement: return 'SWARMING_SERVER' in os.environ
docstring: Determines whether we are on swarming or not.
  
    Returns:
      True if the test is being run on swarming, otherwise False.
docstring_summary: Determines whether we are on swarming or not.
docstring_tokens: Determines whether we are on swarming or not .
function: def IsOnSwarming():
    """Determines whether we are on swarming or not.
  
    Returns:
      True if the test is being run on swarming, otherwise False.
    """
    # Look for the presence of the SWARMING_SERVER environment variable as a
    # heuristic to determine whether we're running on a workstation or a bot.
    # This should always be set on swarming, but would be strange to be set on
    # a workstation.
    return 'SWARMING_SERVER' in os.environ
function_tokens: def IsOnSwarming ( ) : # Look for the presence of the SWARMING_SERVER environment variable as a # heuristic to determine whether we're running on a workstation or a bot. # This should always be set on swarming, but would be strange to be set on # a workstation. return 'SWARMING_SERVER' in os . environ