def _gen_task_id(item):
    """ Translates pytest nodeids to Airflow task ids. """
    replacements = {"/": "..", "::": "-", "[": "-", "]": ""}
    id = item.nodeid
    for k, v in replacements.items():
        id = id.replace(k, v)
    return id