docstr: Extract DB name from DB path
  
  E.g. given self.db_path=`/tmp/sample.db`, or
  self.db_path = `dper_test_data/cached_reader/sample.db`
  it returns `sample`.
  
  Returns:
      db_name: str.
docstr_tok: ["Extract","DB","name","from","DB","path","E.g",".","given","self.db_path=","`","\/tmp\/sample.db","`",",","or","self.db_path","=","`","dper_test_data\/cached_reader\/sample.db","`","it","returns","`","sample","`",".","Returns",":","db_name",":","str","."]
code: def _extract_db_name_from_db_path(self):
      """Extract DB name from DB path
  
      E.g. given self.db_path=`/tmp/sample.db`, or
      self.db_path = `dper_test_data/cached_reader/sample.db`
      it returns `sample`.
  
      Returns:
          db_name: str.
      """
      return os.path.basename(self.db_path).rsplit(".", 1)[0]
  
file_path: pytorch/caffe2/python/db_file_reader.py
imports: from caffe2.python import core, scope, workspace, _import_c_extension
  from caffe2.python.dataio import Reader
  from caffe2.python.dataset import Dataset
  from caffe2.python.schema import from_column_list
  import os
label_desc: Use image node_id 8 for calling the DBFileReader obj's underlying member method code with example usage: obj._extract_db_name_from_db_path() and returns: os