code: def _key_path(self, key):
      try:
          return self.keypaths[key]
      except KeyError:
          pass
      directory = os.path.join(self.path, _hash(key))
      self.keypaths[key] = directory
      return directory
  
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 4 for calling the DirectoryBasedExampleDatabase obj's underlying member method code with example usage: obj._key_path(key) and returns: directory, self