code: def testCoercetoStructurallyValidOnInvalidInput(self):
      if sys.platform == "darwin":
          self.skipTest("Skip to avoid architecture issue in macos")
      with self.test_session():
          utf8 = string_ops.coerce_to_structurally_valid_utf8(
              [b"abc\xfd"]
          )
      self.assertAllEqual(utf8, ["abc�".encode("utf-8")])
  
file_path: text/tensorflow_text/python/ops/coerce_to_valid_utf8_op_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops import string_ops
label_desc: Use image node_id 3 for calling the CoerceToUtf8Test obj's underlying member method code with example usage: obj.testCoercetoStructurallyValidOnInvalidInput() without return types