def add_toolkit(topology, location):
import streamsx.topology.topology<EOL>assert isinstance(topology, streamsx.topology.topology.Topology)<EOL>tkinfo = dict()<EOL>tkinfo['<STR_LIT:root>'] = os.path.abspath(location)<EOL>topology.graph._spl_toolkits.append(tkinfo)<EOL>
Add an SPL toolkit to a topology.

    Args:
        topology(Topology): Topology to include toolkit in.
        location(str): Location of the toolkit directory.