

def create_workflow_dir(where, path, job, use_uuid=None, chmod=''):
    if (use_uuid is None):
        use_uuid = six.text_type(uuid.uuid4())
    constructed_dir = _append_slash_if_needed(path)
    constructed_dir += ('%s/%s' % (job.name, use_uuid))
    with remote.get_remote(where) as r:
        if where:
            r.execute_command(('mkdir -p -m %s %s' % (chmod, constructed_dir)))
        else:
            r.execute_command(('mkdir -p %s' % constructed_dir))
    return constructed_dir

dataset/ETHPy150Open openstack/sahara/sahara/service/edp/job_utils.py create_workflow_dir/VarMisuse@79/109 `chmod`->`where`