code: def test_filter_intervals_table():
      vds = hl.vds.read_vds(
          os.path.join(resource("vds"), "1kg_chr22_5_samples.vds")
      )
      filter_vars = vds.variant_data.rows().head(10).select()
      filter_intervals = filter_vars.key_by(
          interval=hl.interval(
              filter_vars.locus, filter_vars.locus, includes_end=True
          )
      )
      vds_filt = hl.vds.filter_intervals(vds, filter_intervals)
  
      assert vds_filt.variant_data.rows().select()._same(filter_vars)
  
imports: import os
  import pytest
  import hail
  from hail.utils import new_temp_file
  from hail.vds.combiner.combine import defined_entry_fields
  from ..helpers import resource, test_timeout, qobtest
label_desc: Use image node_id 29 for calling a global function with example usage: test_filter_intervals_table() without return types