code: def test_swapaxes_0d_1d_operands():
      x1 = C.input_variable(())
      with pytest.raises(ValueError):
          swapaxes_0d = C.swapaxes(x1)
  
      x2 = C.input_variable(2)
      with pytest.raises(ValueError):
          swapaxes_1d = C.swapaxes(x2)
  
imports: from __future__ import division
  import numpy
  import cntk
  import pytest
  from .ops_test_utils import unittest_helper, _test_unary_op, _test_binary_op, AA, precision, PRECISION_TO_TYPE, cntk_device
  import cntk
  from cntk import Value
  from cntk.axis import Axis
  from cntk.internal import sanitize_dtype_cntk
  from ..None import constant
label_desc: Use image node_id 9 for calling a global function with example usage: test_swapaxes_0d_1d_operands() without return types