code: def test_variable_arithmetic_scalar_rops(seed, op):
      rng = np.random.RandomState(seed)
      vx = nn.Variable.from_numpy_array(
          rng.randn(2, 3, 4).astype(np.float32)
      )
      a = rng.randn()
      if op == "**":
          a = np.abs(a)
      with nn.auto_forward():
          vz = eval("a {0} vx".format(op))
          ref_z = eval("a {0} vx.d".format(op))
          assert_allclose(ref_z, vz.d)
  
file_path: nnabla/python/test/test_variable_arithmetic_ops.py
imports: import pytest
  import numpy
  import nnabla
  from nnabla.testing import assert_allclose
label_desc: Use image node_id 3 for calling a global function with example usage: test_variable_arithmetic_scalar_rops(seed, op) without return types