code: def test_superclass(self):
      # try both positional and keyword arguments
      s = np.str_(b"\\x61", encoding="unicode-escape")
      assert s == "a"
      s = np.str_(b"\\x61", "unicode-escape")
      assert s == "a"
  
      # previously this would return '\\xx'
      with pytest.raises(UnicodeDecodeError):
          np.str_(b"\\xx", encoding="unicode-escape")
      with pytest.raises(UnicodeDecodeError):
          np.str_(b"\\xx", "unicode-escape")
  
      # superclass fails, but numpy succeeds
      assert np.bytes_(-2) == b"-2"
  
imports: import pytest
  import numpy
  from numpy.testing import assert_equal, assert_almost_equal, assert_warns
label_desc: Use image node_id 1 for calling the TestExtraArgs obj's underlying member method code with example usage: obj.test_superclass() without return types