code: def test_convert_to_variable_dtype():
      assert C.input_variable(1).dtype == np.float32
  
      data = np.arange(1, dtype=np.int32)
      result = (C.input_variable(1) + 2).eval([data])
      assert result == [[[2]]]
      assert result.dtype == np.float32
  
      data = np.arange(1.0, dtype=np.float64)
      (C.input_variable(1) + 2).eval([data])
      result = (C.input_variable(1) + 2).eval([data])
      assert result == [[[2]]]
      assert result.dtype == np.float32
  
file_path: CNTK/bindings/python/cntk/tests/variables_test.py
imports: from ..None import times, placeholder, constant, plus, alias, initializer
  import numpy
  import cntk
  import pytest
label_desc: Use image node_id 9 for calling a global function with example usage: test_convert_to_variable_dtype() without return types