def METHOD_NAME(monkeypatch):
    """
    Fake access checks used in file based storage using supervdsm.
    Returned object has a "allowed" attribute set to True to make access check
    succeed. To make access check fail, set it to False.
    """
    class METHOD_NAME:
        allowed = True
    fa = METHOD_NAME()
    monkeypatch.setattr(fileSD, "validateDirAccess", lambda path: fa.allowed)
    return fa