class_docstr: Cache for the FFT twiddle factors as an LRU (least recently used) cache.
  
  Parameters
  ----------
  max_size_in_mb : int
      Maximum memory usage of the cache before items are being evicted.
  max_item_count : int
      Maximum item count of the cache before items are being evicted.
  
  Notes
  -----
  Items will be evicted if either limit has been reached upon getting and
  setting. The maximum memory usages is not strictly the given
  ``max_size_in_mb`` but rather
  ``max(max_size_in_mb, 1.5 * size_of_largest_item)``. Thus the cache will
  never be completely cleared - at least one item will remain and a single
  large item can cause the cache to retain several smaller items even if the
  given maximum cache size has been exceeded.
class_docstr_tok: ["Cache","for","the","FFT","twiddle","factors","as","an","LRU","(","least","recently","used",")","cache",".","Parameters","--","--","--","--","--","max_size_in_mb",":","int","Maximum","memory","usage","of","the","cache","before","items","are","being","evicted",".","max_item_count",":","int","Maximum","item","count","of","the","cache","before","items","are","being","evicted",".","Notes","--","--","-","Items","will","be","evicted","if","either","limit","has","been","reached","upon","getting","and","setting",".","The","maximum","memory","usages","is","not","strictly","the","given","``","max_size_in_mb","``","but","rather","``","max","(","max_size_in_mb",",","1.5","*","size_of_largest_item",")","``",".","Thus","the","cache","will","never","be","completely","cleared","-","at","least","one","item","will","remain","and","a","single","large","item","can","cause","the","cache","to","retain","several","smaller","items","even","if","the","given","maximum","cache","size","has","been","exceeded","."]
code: def _check_size(self):
      item_sizes = [
          sum(_j.nbytes for _j in _i)
          for _i in self._dict.values()
          if _i
      ]
      if not item_sizes:
          return False
      max_size = max(self._max_size_in_bytes, 1.5 * max(item_sizes))
      return sum(item_sizes) > max_size
  
file_path: catboost/contrib/python/numpy/py2/numpy/fft/helper.py
imports: from __future__ import division, absolute_import, print_function
  import collections
  from numpy.compat import integer_types
  from numpy.core import integer, empty, arange, asarray, roll
  from numpy.core.overrides import array_function_dispatch, set_module
label_desc: Use image node_id 5 for calling the _FFTCache obj's underlying member method code with example usage: obj._check_size() and returns: unknown, False