<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def port(port_number, return_format=None):
 """Summary information about a particular port. In the returned data: Records: Total number of records for a given date. Targets: Number of unique destination IP addresses. Sources: Number of unique originating IPs. :param port_number: a string or integer port number """

    response = _get('port/{number}'.format(number=port_number), return_format)
    if 'bad port number' in str(response):
        raise Error('Bad port number, {number}'.format(number=port_number))
    else:
        return response