def dispatch(command_class, argv=sys.argv, input_file=sys.stdin, output_file=sys.stdout, module_name=None):
    assert issubclass(command_class, SearchCommand)

    if module_name is None or module_name == '__main__':
        command_class().process(argv, input_file, output_file)
Instantiates and executes a search command class
dataset/ETHPy150Open splunk/splunk-sdk-python/splunklib/searchcommands/search_command.py/dispatch