<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def local_manager_rule(self):
 """Return rule for local manager. """

        adm_gid = self.local_manager_gid
        if not adm_gid:
            return None
        config = self.root['settings']['ugm_localmanager'].attrs
        return config[adm_gid]