def memoise(wrapped):

    @wraps(wrapped)
    def wrapper(*args, **kwargs):
      key = args[0]
      if key not in cache:
        cache[key] = wrapped(*args, **kwargs)
      return cache[key]

    return wrapper
dataset/ETHPy150Open LABHR/octohatrack/octohatrack/helpers.py/memoise/original