code: def isMethodAllowed(self, method):
          
          if isinstance(method, str):
              uid = method
          else:
              uid = method.UID()
  
          return uid in self.getAllowedMethodUIDs()
docs: Checks if the analysis can follow the method specified, either if
          the method was assigned directly (by using "Allows manual entry of
          results") or indirectly via Instrument ("Allows instrument entry of
          results") in Analysis Service Edit view.
          Param method can be either a uid or an object
          :param method: string,Method
          :return: True if the analysis can follow the method specified
          :rtype: bool