code: def test_cast_1d_array_invalid_scalar(val):
      with pytest.raises(TypeError, match="has no len()"):
          construct_1d_object_array_from_listlike(val)
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_cast_1d_array_invalid_scalar(val) without return types