def METHOD_NAME(self, fsname, policyfile, m_var_identifiers):
    cmd = ['mmapplypolicy', fsname, '-P', policyfile]
    if logging.getLogger().isEnabledFor(10):
        cmd.extend(['-L', '6'])
    if len(m_var_identifiers) != 0:
        for key, value in m_var_identifiers.items():
            cmd.append('-M')
            cmd.append("%s=%s" % (key, value))
    rc = self.__execute(cmd)
    if rc == 0: return rc
    raise AssertionError("Failed to apply %s policy" % policyfile)