code: def test_validator_rejection_number_free_2d_element_value(
      val, invalid_inds, validator_number_free_2d
  ):
      with pytest.raises(ValueError) as validation_failure:
          validator_number_free_2d.validate_coerce(val)
  
      invalid_val = val[invalid_inds[0]][invalid_inds[1]]
      invalid_name = "prop[{}][{}]".format(*invalid_inds)
      assert (
          "Invalid value of type {typ} received for the '{invalid_name}' property of parent".format(
              typ=type_str(invalid_val), invalid_name=invalid_name
          )
      ) in str(validation_failure.value)
  
imports: import pytest
  from _plotly_utils.basevalidators import InfoArrayValidator, type_str
  import numpy
label_desc: Use image node_id 41 for calling a global function with example usage: test_validator_rejection_number_free_2d_element_value(val, invalid_inds, validator_number_free_2d) without return types