def METHOD_NAME(properties):
    if not properties:
        return None
    for key, value in properties:
        if key == "spark.executorEnv.PAASTA_SERVICE":
            service = value
            break
    else:
        return None
    if service.startswith(JUPYTER_PREFIX):
        return service[len(JUPYTER_PREFIX) :]
    else:
        return service