code: def test_where_dispatch(self):
      class DuckArray:
          def __array_function__(
              self, ufunc, method, *inputs, **kwargs
          ):
              return "overridden"
  
      array = np.array(1)
      duck_array = DuckArray()
  
      result = np.std(array, where=duck_array)
  
      assert_equal(result, "overridden")
  
imports: import inspect
  import sys
  import os
  import tempfile
  from io import StringIO
  from unittest import mock
  import numpy
  from numpy.testing import assert_, assert_equal, assert_raises, assert_raises_regex
  from numpy.core.overrides import _get_implementing_args, array_function_dispatch, verify_matching_signatures
  from numpy.compat import pickle
  import pytest
label_desc: Use image node_id 5 for calling the TestArrayFunctionDispatch obj's underlying member method code with example usage: obj.test_where_dispatch() and returns: str