code: def _open(wrapped):
      if not wrapped.closed:
          raise RuntimeError("alru_cache is not closed")
  
      was_closed = (
          wrapped.hits
          == wrapped.misses
          == len(wrapped.tasks)
          == len(wrapped._cache)
          == 0
      )
  
      if not was_closed:
          raise RuntimeError("alru_cache was not closed correctly")
  
      wrapped.closed = False
  
file_path: mars/mars/lib/aio/lru.py
imports: import asyncio
  import os
  import weakref
  from collections import OrderedDict
  from functools import _CacheInfo, _make_key, partial, wraps
label_desc: Use image node_id 6 for calling a global function with example usage: _open(wrapped) without return types