def __Insert(self, index, key, function, service=None):
    unique_key = (key, inspect.getmodule(function))
    if unique_key in self.__unique_keys:
      return False
    num_args = len(inspect.getargspec(function)[0])
    if (inspect.ismethod(function)):
      num_args -= 1
    self.__content.insert(index, (key, function, service, num_args))
    self.__unique_keys.add(unique_key)
    return True
Create a list of ``MenuItem``s for the activity feed.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/apiproxy_stub_map.py/ListOfHooks.__Insert--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/views.py/_get_addons