<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hostname(self, levels=1):
 """ Produce a hostname with specified number of subdomain levels. db-01.nichols-phillips.com laptop-56 web-12.williamson-hopkins.jackson.com """

        if levels < 1:
            return self.random_element(self.hostname_prefixes) + '-' + self.numerify('##')
        return self.random_element(self.hostname_prefixes) + '-' + self.numerify('##') + '.' + self.domain_name(levels)