code: def get_qualification_type_by_name(self, name):
          
          max_fuzzy_matches_to_check = 100
          query = name.upper()
          start = time.time()
          args = {
              "Query": query,
              "MustBeRequestable": False,
              "MustBeOwnedByCaller": True,
              "MaxResults": max_fuzzy_matches_to_check,
          }
          results = self.mturk.list_qualification_types(**args)["QualificationTypes"]
          # This loop is largely for tests, because there's some indexing that
          # needs to happen on MTurk for search to work:
          while not results and time.time() - start < self.max_wait_secs:
              time.sleep(1)
              results = self.mturk.list_qualification_types(**args)["QualificationTypes"]
  
          if not results:
              return None
  
          qualifications = [self._translate_qtype(r) for r in results]
          if len(qualifications) > 1:
              for qualification in qualifications:
                  if qualification["name"].upper() == query:
                      return qualification
  
              raise MTurkServiceException("{} was not a unique name".format(query))
  
          return qualifications[0]
docs: Return a Qualification Type by name. If the provided name matches
          more than one Qualification, check to see if any of the results
          match the provided name exactly. If there's an exact match, return
          that Qualification. Otherwise, raise an exception.