import socket


def connect(target):
    """
    Open a TCP connection to the target.

    Args:
        target (tuple): A tuple containing the host in `str` and port
            in `int`.

    Returns:
        The TCP socket object.
    """
    _socket = socket.socket()
    _socket.connect(target)
    return _socket