code: def test_annotate_intervals_bed3(self):
      ds = get_dataset()
      bed3 = hl.import_bed(
          resource("example3.bed"), reference_genome="GRCh37"
      )
      ann = ds.annotate_rows(target=bed3[ds.locus].target).rows()
      expr = (
          hl.case()
          .when(ann.locus.position <= 14000000, ann.target == "gene1")
          .when(ann.locus.position >= 17000000, ann.target == "gene2")
          .default(ann.target == hl.missing(hl.tstr))
      )
      assert ann.all(expr)
  
imports: import unittest
  import hail
  from ..helpers import *
label_desc: Use image node_id 4 for calling the Tests obj's underlying member method code with example usage: obj.test_annotate_intervals_bed3() without return types