def ensure_dir(directory):

    if not path.exists(directory):
        mkdir(directory)
Adds rule to be tested.
dataset/ETHPy150Open haesken/dftools/lib/dftlib.py/ensure_dir--crossover with--dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/openstack/common/policy.py/AndCheck.add_check