code: def with_datastore(request):
      """Fixture which returns an initialized datastore."""
      try:
          os.unlink(FNAME)
      except FileNotFoundError:
          pass
      wandb._set_internal_process()
      s = datastore.DataStore()
      s.open_for_write(FNAME)
  
      def fin():
          os.unlink(FNAME)
  
      request.addfinalizer(fin)
      return s
  
file_path: wandb/tests/pytest_tests/unit_tests/test_datastore.py
imports: import json
  import os
  import pytest
  import wandb
  from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: with_datastore(request) and returns: s