code: def test_maximum_minimuim():
      x = np.arange(4)
      y = np.array([7, 0, 2, 4])
      z = [5, 2, 3, 1]
      nan_elem = np.array([1.0, float("nan"), 3.0, 6.0])
      f = np.array([1.0, 3.0, 6.0, 4.0])
      nx = hl.nd.array(x)
      ny = hl.nd.array(y)
      nf = hl.nd.array(f)
      ndnan_elem = hl.nd.array(
          [1.0, hl.float64(float("NaN")), 3.0, 6.0]
      )
  
      assert_ndarrays_eq(
          (hl.nd.maximum(nx, ny), np.maximum(x, y)),
          (hl.nd.maximum(ny, z), np.maximum(y, z)),
          (hl.nd.minimum(nx, ny), np.minimum(x, y)),
          (hl.nd.minimum(ny, z), np.minimum(y, z)),
      )
  
      np_nan_max = np.maximum(nan_elem, f)
      nan_max = hl.eval(hl.nd.maximum(ndnan_elem, nf))
      np_nan_min = np.minimum(nan_elem, f)
      nan_min = hl.eval(hl.nd.minimum(ndnan_elem, nf))
      max_matches = 0
      min_matches = 0
      for a, b in zip(np_nan_max, nan_max):
          if a == b:
              max_matches += 1
          elif np.isnan(a) and np.isnan(b):
              max_matches += 1
      for a, b in zip(np_nan_min, nan_min):
          if a == b:
              min_matches += 1
          elif np.isnan(a) and np.isnan(b):
              min_matches += 1
  
      assert nan_max.size == max_matches
      assert nan_min.size == min_matches
  
imports: import math
  import numpy
  import re
  from ..helpers import *
  import pytest
  from hail.utils.java import FatalError, HailUserError
label_desc: Use image node_id 50 for calling a global function with example usage: test_maximum_minimuim() without return types