code: def test_loop_errors(self):
      with pytest.raises(
          TypeError,
          match="requested type ndarray<int32, 2> does not match inferred type ndarray<float64, 2>",
      ):
          result = hl.experimental.loop(
              lambda f, my_nd: hl.if_else(
                  my_nd[0, 0] == 1000, my_nd, f(my_nd + 1)
              ),
              hl.tndarray(hl.tint32, 2),
              hl.nd.zeros((20, 10), hl.tfloat64),
          )
  
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 20 for calling the Tests obj's underlying member method code with example usage: obj.test_loop_errors() without return types