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