code: def save(self, key, value):
      # Note: we attempt to create the dir in question now. We
      # already checked for permissions, but there can still be other issues,
      # e.g. the disk is full
      mkdir_p(self._key_path(key))
      path = self._value_path(key, value)
      if not os.path.exists(path):
          suffix = binascii.hexlify(os.urandom(16))
          if not isinstance(suffix, str):  # pragma: no branch
              # On Python 3, binascii.hexlify returns bytes
              suffix = suffix.decode("ascii")
          tmpname = path + "." + suffix
          with open(tmpname, "wb") as o:
              o.write(value)
          try:
              os.rename(tmpname, path)
          except OSError:  # pragma: no cover
              os.unlink(tmpname)
          assert not os.path.exists(tmpname)
  
imports: from __future__ import absolute_import, division, print_function
  import binascii
  import os
  import warnings
  from hashlib import sha384
  from hypothesis.configuration import mkdir_p, storage_directory
  from hypothesis.errors import HypothesisException, HypothesisWarning
  from hypothesis.internal.compat import hbytes
  from hypothesis.utils.conventions import not_set
label_desc: Use image node_id 7 for calling the DirectoryBasedExampleDatabase obj's underlying member method code with example usage: obj.save(key, value) without return types