def ensure_dir(dir_path):
    """Ensure a directory with 755 permissions mode."""
    try:
        os.makedirs(dir_path, 0o755)
    except __HOLE__ as e:
        # If the directory already existed, don't raise the error.
        if e.errno != errno.EEXIST:
            raise
dataset/ETHPy150Open openstack/neutron/neutron/common/utils.py/ensure_dir