def types_args_one_port(port, formatter):
    """
    Extract from a port:
    1. a list of "type arg"s
    2. a list of args

    :param port:
    :param formatter: a string formatter with {0} and/or {1} where {0} is the port name, and {2} is an arg ID.
    :return:
    """
    types_args = []
    args = []
    for i in range(len(port.argtypes)):
        arg = formatter.format(port.name, i)
        args.append(arg)
        types_args.append("%s %s" % (port.argtypes[i], arg))
    return types_args, args