class_docstr: Base class for shelf implementations.
  
  This is initialized with a dictionary-like object.
  See the module's __doc__ string for an overview of the interface.
class_docstr_tok: ["Base","class","for","shelf","implementations",".","This","is","initialized","with","a","dictionary-like","object",".","See","the","module","'s","__doc__","string","for","an","overview","of","the","interface","."]
code: def close(self):
      if self.dict is None:
          return
      try:
          self.sync()
          try:
              self.dict.close()
          except AttributeError:
              pass
      finally:
          # Catch errors that may happen when close is called from __del__
          # because CPython is in interpreter shutdown.
          try:
              self.dict = _ClosedDict()
          except:
              self.dict = None
  
imports: from pickle import DEFAULT_PROTOCOL, Pickler, Unpickler
  from io import BytesIO
  import collections.abc
label_desc: Use image node_id 11 for calling the Shelf obj's underlying member method code with example usage: obj.close() without return types