code: def dbapi(conf=cfg.CONF):
      
      global _DBAPI
  
      if _DBAPI is None:
          _DBAPI = api.DatabaseAPI(conf)
      return _DBAPI
docs: Retrieves an instance of the configured database API.
  
      :param oslo_config.cfg.ConfigOpts conf: an instance of the configuration
                                              file
      :return: database API instance
      :rtype: :class:`~tvrenamer.cache.api.DatabaseAPI`