code: def _verify(leniency, numobj, candidate, matcher):
      
      if leniency == Leniency.POSSIBLE:
          return is_possible_number(numobj)
      elif leniency == Leniency.VALID:
          if (not is_valid_number(numobj) or
              not _contains_only_valid_x_chars(numobj, candidate)):
              return False
          return _is_national_prefix_present_if_required(numobj)
      elif leniency == Leniency.STRICT_GROUPING:
          return _verify_strict_grouping(numobj, candidate, matcher)
      elif leniency == Leniency.EXACT_GROUPING:
          return _verify_exact_grouping(numobj, candidate, matcher)
      else:
          raise Exception("Error: unsupported Leniency value %s" % leniency)
docs: Returns True if number is a verified number according to the
      leniency.