code: def __contains__(self, key):
      if isinstance(key, str):
          key = key.encode("utf-8")
      try:
          return key in self._index
      except TypeError:
          if self._index is None:
              raise error(
                  "DBM object has already been closed"
              ) from None
          else:
              raise
  
imports: import ast
  import io
  import os
  import collections.abc
label_desc: Use image node_id 14 for calling the _Database obj's underlying member method code with example usage: obj.__contains__(key) and returns: unknown