code: def check_none_arg(arg, val, none_case):
      if val is None:
          assert arg == none_case
          return
      assert arg == val
  
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  import nnabla.parametric_functions
  import nnabla.initializer
  from nnabla.testing import assert_allclose
  from nbla_test_utils import list_context
label_desc: Use image node_id 7 for calling a global function with example usage: check_none_arg(arg, val, none_case) without return types