what does this line of python code means : am using paramiko in python to sftp files to remote machine, rest of code makes sense to me but this specific line am not understanding what it does

    transport = paramiko.Transport((hostname, 22))
what is transport?

this is the whole code

    transport = paramiko.Transport((hostname, 22))
    transport.connect(username=username, password=password)
    sftp = paramiko.SFTPClient.from_transport(transport)
    sftp.put(localPath, remotePath)

    sftp.close()
    transport.close()

what i understand is that it makes the socket, i might be wrong, please someone clarify this to me in most simple terms