code: def test_ld_score_univariate(self):
      mt = self.get_ld_score_mt()
      ht_univariate = hl.experimental.ld_score(
          entry_expr=mt.GT.n_alt_alleles(),
          locus_expr=mt.locus,
          radius=1.0,
          coord_expr=mt.cm_position,
      )
  
      univariate = ht_univariate.aggregate(
          hl.struct(
              chr20=hl.agg.filter(
                  (ht_univariate.locus.contig == "20")
                  & (ht_univariate.locus.position == 82079),
                  hl.agg.collect(ht_univariate.univariate),
              )[0],
              chr22=hl.agg.filter(
                  (ht_univariate.locus.contig == "22")
                  & (ht_univariate.locus.position == 16894090),
                  hl.agg.collect(ht_univariate.univariate),
              )[0],
              mean=hl.agg.mean(ht_univariate.univariate),
          )
      )
  
      self.assertAlmostEqual(univariate.chr20, 1.601, places=3)
      self.assertAlmostEqual(univariate.chr22, 1.140, places=3)
      self.assertAlmostEqual(univariate.mean, 3.507, places=3)
  
imports: import numpy
  import hail
  import unittest
  import pytest
  from ..helpers import *
  from hail.utils import new_temp_file
label_desc: Use image node_id 2 for calling the Tests obj's underlying member method code with example usage: obj.test_ld_score_univariate() without return types