def METHOD_NAME(app_name):
    output = subprocess.check_output(
        ['ps', 'ax', '-o', 'pid', '-o', 'cmd']
    ).decode()
    pid = re.search(fr'(\d+)\s*unit: "{app_name}" application', output).group(1)
    cgroup = f'/proc/{pid}/cgroup'
    if not os.path.isfile(cgroup):
        pytest.skip(f'no cgroup at {cgroup}')
    with open(cgroup, 'r') as f:
        return f.read().rstrip()