code: def test_constant_data_type_mismatch():
      a = C.constant(np.triu(np.ones(5)), shape=(5, 5))
      i = C.input_variable(shape=(5, 5))
      b = a * i
  
      with pytest.raises(ValueError):
          b.eval(
              {
                  i: [
                      [
                          np.asarray(
                              np.random.rand(5, 5), dtype=np.float32
                          )
                      ]
                  ]
              }
          )
  
imports: import numpy
  import os
  import pytest
  import cntk
  from .ops_test_utils import compare_lists_of_np_arrays, AA, cntk_device
  from cntk.io import MinibatchSource, CTFDeserializer, StreamDefs, StreamDef
label_desc: Use image node_id 23 for calling a global function with example usage: test_constant_data_type_mismatch() without return types