code: def test_hwe_normalized_pca():
      mt = hl.balding_nichols_model(3, 100, 50)
      eigenvalues, scores, loadings = hl.hwe_normalized_pca(
          mt.GT, k=2, compute_loadings=True
      )
  
      assert len(eigenvalues) == 2
      assert isinstance(scores, hl.Table)
      assert scores.count() == 100
      assert isinstance(loadings, hl.Table)
  
      _, _, loadings = hl.hwe_normalized_pca(
          mt.GT, k=2, compute_loadings=False
      )
      assert loadings is None
  
imports: import math
  import pytest
  import numpy
  import hail
  from hail.methods.pca import _make_tsm
  from ..helpers import resource, fails_local_backend, skip_when_service_backend, test_timeout
label_desc: Use image node_id 1 for calling a global function with example usage: test_hwe_normalized_pca() without return types