code: def test_like_as_none(self, function, args, kwargs):
      self.add_method("array", self.MyArray)
      self.add_method(function, self.MyArray)
      np_func = getattr(np, function)
  
      like_args = tuple(a() if callable(a) else a for a in args)
      # required for loadtxt and genfromtxt to init w/o error.
      like_args_exp = tuple(a() if callable(a) else a for a in args)
  
      array_like = np_func(*like_args, **kwargs, like=None)
      expected = np_func(*like_args_exp, **kwargs)
      # Special-case np.empty to ensure values match
      if function == "empty":
          array_like.fill(1)
          expected.fill(1)
      assert_equal(array_like, expected)
  
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 9 for calling the TestArrayLike obj's underlying member method code with example usage: obj.test_like_as_none(function, args, kwargs) without return types