code: def db_json(init_hail):
      backend = hl.current_backend()
      if isinstance(backend, ServiceBackend):
          backend.batch_attributes = dict(name="setupAnnotationDBTests")
      t = hl.utils.genomic_range_table(10)
      t = t.annotate(annotation=hl.str(t.locus.position - 1))
      tempdir_manager = hl.TemporaryDirectory()
      d = tempdir_manager.__enter__()
      fname = d + "/f.mt"
      t.write(fname)
      if isinstance(backend, ServiceBackend):
          backend.batch_attributes = dict()
      db_json = {
          "unique_dataset": {
              "description": "now with unique rows!",
              "url": "https://example.com",
              "annotation_db": {"key_properties": ["unique"]},
              "versions": [
                  {
                      "url": {
                          "aws": {"eu": fname, "us": fname},
                          "gcp": {"eu": fname, "us": fname},
                      },
                      "version": "v1",
                      "reference_genome": "GRCh37",
                  }
              ],
          },
          "nonunique_dataset": {
              "description": "non-unique rows :(",
              "url": "https://example.net",
              "annotation_db": {"key_properties": []},
              "versions": [
                  {
                      "url": {
                          "aws": {"eu": fname, "us": fname},
                          "gcp": {"eu": fname, "us": fname},
                      },
                      "version": "v1",
                      "reference_genome": "GRCh37",
                  }
              ],
          },
      }
  
      yield db_json
  
      tempdir_manager.__exit__(None, None, None)
  
imports: import pytest
  import hail
  from hail.backend.service_backend import ServiceBackend
label_desc: Use image node_id 1 for calling the TestAnnotationDB obj's underlying member method code with example usage: obj.db_json(init_hail) without return types