<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_name(self, host_name):
 """ Returns the segment name based on the input host name. """

        if wildcard_match(self._pattern, host_name):
            return host_name
        else:
            return self._fallback