docstr: Test PyUnicode_FromObject()
docstr_tok: ["Test","PyUnicode_FromObject","(",")"]
code: def test_fromobject(self):
      """Test PyUnicode_FromObject()"""
      from _testcapi import unicode_fromobject as fromobject
  
      for s in [
          "abc",
          "\xa1\xa2",
          "\u4f60\u597d",
          "a\U0001f600",
          "a\ud800b\udfffc",
          "\ud834\udd1e",
      ]:
          self.assertEqual(fromobject(s), s)
          o = Str(s)
          s2 = fromobject(o)
          self.assertEqual(s2, s)
          self.assertIs(type(s2), str)
          self.assertIsNot(s2, s)
  
      self.assertRaises(TypeError, fromobject, b"abc")
      self.assertRaises(TypeError, fromobject, [])
  
imports: import unittest
  import sys
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 13 for calling the CAPITest obj's underlying member method code with example usage: obj.test_fromobject() without return types