code: def test_locus_from_global_position():
      rg = hl.get_reference("GRCh37")
      max_length = (
          rg.global_positions_dict[rg.contigs[-1]]
          + rg.lengths[rg.contigs[-1]]
      )
      positions = [0, randint(1, max_length - 2), max_length - 1]
  
      python = [rg.locus_from_global_position(p) for p in positions]
      scala = hl.eval(
          hl.map(
              lambda p: hl.locus_from_global_position(p, rg), positions
          )
      )
  
      assert python == scala
  
file_path: hail/hail/python/test/hail/genetics/test_reference_genome.py
imports: import pytest
  from random import randint
  import hail
  from hail.genetics import *
  from ..helpers import *
  from hail.utils import FatalError
label_desc: Use image node_id 7 for calling a global function with example usage: test_locus_from_global_position() without return types