code: def test_MinibatchData_and_Value_as_input(tmpdir):
      mbdata = r"""0  |S0 100"""
  
      tmpfile = str(tmpdir / "mbtest.txt")
      with open(tmpfile, "w") as f:
          f.write(mbdata)
  
      defs = StreamDefs(f1=StreamDef(field="S0", shape=1))
      mb_source = MinibatchSource(
          CTFDeserializer(tmpfile, defs), randomize=False
      )
  
      f1_si = mb_source.stream_info("f1")
  
      mb = mb_source.next_minibatch(1)
  
      f1 = C.input_variable(shape=(1,), needs_gradient=True, name="f")
      res = f1 * 2
  
      assert res.eval({f1: mb[f1_si]}) == [[200]]
      # Test MinibatchData
      assert res.eval(mb[f1_si]) == [[200]]
      # Test Value
      assert res.eval(mb[f1_si].data) == [[200]]
      # Test NumPy (converted back from MinibatchData)
      assert res.eval(mb[f1_si].asarray()) == [[200]]
      # Test Value
      assert res.eval(mb[f1_si].data) == [[200]]
  
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 20 for calling a global function with example usage: test_MinibatchData_and_Value_as_input(tmpdir) without return types