code: def db(request, tmpdir):
      """Instance of `records.Database(dburl)`
  
      Ensure, it gets closed after being used in a test or fixture.
  
      Parametrized with (sql_url_id, sql_url_template) tuple.
      If `sql_url_template` contains `{dbfile}` it is replaced with path to a
      temporary file.
  
      Feel free to parametrize for other databases and experiment with them.
      """
      id, url = request.param
      # replace {dbfile} in url with temporary db file path
      url = url.format(dbfile=str(tmpdir / "db.sqlite"))
      db = records.Database(url)
      yield db  # providing fixture value for a test case
      # tear_down
      db.close()
  
label_desc: Use image node_id 1 for calling a global function with example usage: db(request, tmpdir) without return types