docstr: Simple Cache dictionary
  modified from https://gist.github.com/davesteele/44793cd0348f59f8fadd49d7799bd306
docstr_tok: ["Simple","Cache","dictionary","modified","from","https",":","\/\/gist.github.com\/davesteele\/44793cd0348f59f8fadd49d7799bd306"]
code: def __init__(self, *args, cache_len: int = 50000, **kwargs):
      """
      Simple Cache dictionary
      modified from https://gist.github.com/davesteele/44793cd0348f59f8fadd49d7799bd306
      """
      if cache_len < 1:
          raise ValueError(
              "cache_len must be greater than 1 got cache_len={}".format(
                  cache_len
              )
          )
      self.cache_len = cache_len
      super().__init__(*args, **kwargs)
  
imports: import warnings
  import functools
  from collections import namedtuple, Counter, OrderedDict
  import spacy
  import numpy
label_desc: Use image node_id 1 to create a new CacheDict object from inherited base classes: OrderedDict with example: obj = CacheDict()