code: def test_gh_15395(self):
      # HasNew is the second base, so `np.float64` should have priority
      x = B1(1.0)
      assert_(str(x) == "1.0")
  
      # previously caused RecursionError!?
      with pytest.raises(TypeError):
          B1(1.0, 2.0)
  
imports: import functools
  from unittest import skipIf
  import pytest
  import torch._numpy
  from torch._numpy.testing import assert_
  from torch.testing._internal.common_utils import run_tests, TestCase
label_desc: Use image node_id 3 for calling the TestInherit obj's underlying member method code with example usage: obj.test_gh_15395() without return types