code: def get_datadir():
      
      datadir = os.environ.get('OQ_DATADIR')
      if not datadir:
          shared_dir = config.directory.shared_dir
          if shared_dir:
              datadir = os.path.join(shared_dir, getpass.getuser(), 'oqdata')
          else:  # use the home of the user
              datadir = os.path.join(os.path.expanduser('~'), 'oqdata')
      return datadir
docs: Extracts the path of the directory where the openquake data are stored
      from the environment ($OQ_DATADIR) or from the shared_dir in the
      configuration file.