def __call__(self, *args, **kwargs):
    key = str(args) + str(kwargs)
    if key in self._cache:
      ret = self._cache[key]
    else:
      ret = self._cache[key] = self.fn(*args, **kwargs)

    return ret
dataset/ETHPy150Open goldsmith/Wikipedia/wikipedia/util.py/cache.__call__/original