def expand_item(range_list, onepass=False):

    if isinstance(range_list, str):
        range_list = [range_list]
    plugins = _get_plugins()

    # Iterate through our list
    newlist = []
    found_plugin = False
    for item in range_list:
        # Is the item a plugin
        temp = item.split(':')
        if len(temp) > 1:
            plugin = temp[0].lower()
            # Do we have a plugin that matches the passed plugin
            if plugin in plugins.keys():
                # Call the plugin
                item = None
                if multiple_names(plugins[plugin]):  # Pragma no cover
                    newlist += plugins[plugin].expand(
                        ':'.join(temp[1:]).strip(':'),
                        name=plugin
                    )
                else:
                    newlist += plugins[plugin].expand(
                        ':'.join(temp[1:]).strip(':'))
                found_plugin = True
            else:
                # This should probably just be an exception
                raise HostListsError(
                    'plugin %s not found, value plugins are: %s' % (
                        plugin, ','.join(plugins.keys())
                    )
                )
        else:
            # Default to running through the range plugin
            item = None
            newlist += plugins['range'].expand(temp[0])
        if item:
            newlist.append(item)
        # Recurse back through ourselves incase a plugin returns a value that
        # needs to be parsed
    # by another plugin.  For example a dns resource that has an address that
    # points to a load balancer vip that may container a number of hosts that
    # need to be looked up via the load_balancer plugin.
    if found_plugin and not onepass:
        newlist = expand_item(newlist)
    return newlist
Return true if the APK is valid, false otherwise
dataset/ETHPy150Open dwighthubbard/hostlists/hostlists/hostlists.py/expand_item--crossover with--dataset/ETHPy150Open androguard/androguard/androguard/core/bytecodes/apk.py/APK.is_valid_APK