def get_function(self):
<EOL>if not bool(self._my_map['<STR_LIT>']):<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT>mgr = self._get_provider_manager('<STR_LIT>')<EOL>if not mgr.supports_function_lookup():<EOL><INDENT>raise errors.OperationFailed('<STR_LIT>')<EOL><DEDENT>lookup_session = mgr.get_function_lookup_session(proxy=getattr(self, "<STR_LIT>", None))<EOL>lookup_session.use_federated_vault_view()<EOL>return lookup_session.get_function(self.get_function_id())<EOL>
Gets the ``Function`` for this authorization.

        return: (osid.authorization.Function) - the function
        raise:  OperationFailed - unable to complete request
        *compliance: mandatory -- This method must be implemented.*