def get_runner(name, config=None):
    """
    Load the module and return an instance of the runner.
    """
    LOG.debug("Runner loading Python module: %s", name)

    module = get_runner_module(name=name)

    LOG.debug("Instance of runner module: %s", module)

    if config:
        runner_kwargs = {"config": config}
    else:
        runner_kwargs = {}

    runner = module.get_runner(**runner_kwargs)
    LOG.debug("Instance of runner: %s", runner)
    return runner

    Load the module and return an instance of the runner.
    
st2common/st2common/runners/base.py