def METHOD_NAME(
        hostname, port, vhost, user_name=None, password=None,
        transport_options=None):
    credentials = f'{user_name}:{password}@' if user_name else ''
    return kombu.Connection(
        f'redis://{credentials}{hostname}:{port}',
        transport_options=transport_options
    )