code: def test_annotate_intervals_bed1(self):
      ds = get_dataset()
      bed1 = hl.import_bed(
          resource("example1.bed"), reference_genome="GRCh37"
      )
      interval_list1 = hl.import_locus_intervals(
          resource("exampleAnnotation1.interval_list")
      )
  
      ann = ds.annotate_rows(in_interval=bed1[ds.locus]).rows()
      assert ann.all(
          hl.any(
              ann.locus.position <= 14000000,
              ann.locus.position >= 17000000,
              hl.is_missing(ann.in_interval),
          )
      )
      intervallist = ds.annotate_rows(
          in_interval=interval_list1[ds.locus]
      ).rows()
      bed = ds.annotate_rows(in_interval=bed1[ds.locus]).rows()
      assert intervallist._same(bed)
  
imports: import unittest
  import hail
  from ..helpers import *
label_desc: Use image node_id 2 for calling the Tests obj's underlying member method code with example usage: obj.test_annotate_intervals_bed1() without return types