code: def import_bgen_filter_count(bgen_path, sample_path):
      mt = hl.import_bgen(
          bgen_path,
          sample_file=sample_path,
          entry_fields=["GT", "GP"],
          n_partitions=8,
      )
      mt = mt.filter_rows(mt.alleles == ["A", "T"])
      mt._force_count_rows()
  
imports: from os import path
  from tempfile import TemporaryDirectory, NamedTemporaryFile
  import hail
  from .resources import *
  from .utils import benchmark
label_desc: Use image node_id 32 for calling a global function with example usage: import_bgen_filter_count(bgen_path, sample_path) without return types