def METHOD_NAME(client: SourceType.UnTyped, tmpdir: SourceType.String):
    # Get the AXI port names.
    port_names = list(get_ports(Path(tmpdir) / "kernel.xml"))
    # Run the .xo packager Vivado script.
    self._shell(
        client,
        package_cmd.format(
            tmpdir=tmpdir,
            port_names=" ".join(port_names),
        ),
        remote_exec,
    )