def METHOD_NAME(service_name):
    """Test if service is running.
    Args:
        service_name: A string contains the service name
    Returns:
        True if service is running, False otherwise
    """
    status = subprocess.run(["systemctl", "is-active", "--quiet", service_name])
    return status.returncode == 0