code: def test_dc_dynamic_shape():
      def f(a, *, nd):
          return [mx.nd.np.flatnonzero(a)]
  
      for mode in (
          "imperative",
          "imperativewithnondccompute",
          "symbolic",
          "all",
      ):
          _assert_dc(_dc_simple_setup, f, mode=mode, numpy=True)
  
imports: import functools
  import operator
  import numpy
  import mxnet
  import mxnet._deferred_compute
  from mxnet.base import MXNetError
  from mxnet.util import TemporaryDirectory
  import pytest
label_desc: Use image node_id 22 for calling a global function with example usage: test_dc_dynamic_shape() and returns: list