def find_entry_point_for_command(command_name):
    # Attempt to retrieve the command class from the entry points. We
    # first look in rbtools for the commands, and failing that, we look
    # for third-party commands.
    entry_point = pkg_resources.get_entry_info('rbtools', 'rbtools_commands',
                                               command_name)

    if not entry_point:
        try:
            entry_point = next(pkg_resources.iter_entry_points(
                'rbtools_commands', command_name))
        except StopIteration:
            # There aren't any custom entry points defined.
            pass

    return entry_point
Return the node_info, vm_info and freemem
dataset/ETHPy150Open reviewboard/rbtools/rbtools/commands/__init__.py/find_entry_point_for_command--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/virt.py/full_info