<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_auth_constraint(self, action_id: str) -> AbstractAuthConstraint: """ Find rule_id for incoming action_id and return AuthConstraint instance """

        if self.anyone_can_write_map:
            return self._find_auth_constraint(action_id, self.anyone_can_write_map, from_local=True)

        return self._find_auth_constraint(action_id, self.auth_map)