code: def test_table_filter_intervals(self):
      ds = hl.import_vcf(
          resource("sample.vcf"), min_partitions=20
      ).rows()
  
      self.assertEqual(
          hl.filter_intervals(
              ds, [hl.parse_locus_interval("20:10639222-10644705")]
          ).count(),
          3,
      )
  
      intervals = [
          hl.parse_locus_interval("20:10639222-10644700"),
          hl.parse_locus_interval("20:10644700-10644705"),
      ]
      self.assertEqual(hl.filter_intervals(ds, intervals).count(), 3)
  
      intervals = hl.array(
          [
              hl.parse_locus_interval("20:10639222-10644700"),
              hl.parse_locus_interval("20:10644700-10644705"),
          ]
      )
      self.assertEqual(hl.filter_intervals(ds, intervals).count(), 3)
  
      intervals = hl.array(
          [
              hl.eval(hl.parse_locus_interval("20:10639222-10644700")),
              hl.parse_locus_interval("20:10644700-10644705"),
          ]
      )
      self.assertEqual(hl.filter_intervals(ds, intervals).count(), 3)
  
      intervals = [
          hl.eval(hl.parse_locus_interval("[20:10019093-10026348]")),
          hl.eval(hl.parse_locus_interval("[20:17705793-17716416]")),
      ]
      self.assertEqual(hl.filter_intervals(ds, intervals).count(), 4)
  
imports: import unittest
  import hail
  from ..helpers import *
label_desc: Use image node_id 12 for calling the Tests obj's underlying member method code with example usage: obj.test_table_filter_intervals() without return types