code: def get_name(self, host_name):
          
          if wildcard_match(self._pattern, host_name):
              return host_name
          else:
              return self._fallback
docs: Returns the segment name based on the input host name.