code: def matrix_table_from_numpy(np_mat):
      rows, cols = np_mat.shape
      mt = hl.utils.range_matrix_table(rows, cols)
      mt = mt.annotate_globals(entries_global=np_mat)
      mt = mt.annotate_entries(
          ent=mt.entries_global[mt.row_idx, mt.col_idx]
      )
      return mt
  
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 4 for calling a global function with example usage: matrix_table_from_numpy(np_mat) and returns: mt