code: def test_write_utf8(self):
      schema = {
          "geometry": "Point",
          "properties": {"label": "str", "verit\xe9": "int"},
      }
      with fiona.open(
          os.path.join(self.tempdir, "test-write.shp"),
          "w",
          "ESRI Shapefile",
          schema=schema,
          encoding="utf-8",
      ) as c:
          c.writerecords(
              [
                  Feature.from_dict(
                      **{
                          "type": "Feature",
                          "geometry": {
                              "type": "Point",
                              "coordinates": [0, 0],
                          },
                          "properties": {
                              "label": "Ba\u2019kelalan",
                              "verit\xe9": 0,
                          },
                      }
                  )
              ]
          )
  
      with fiona.open(
          os.path.join(self.tempdir), encoding="utf-8"
      ) as c:
          f = next(iter(c))
          assert f.properties["label"] == "Ba\u2019kelalan"
          assert f.properties["verit\xe9"] == 0
  
imports: import os
  import shutil
  import sys
  import tempfile
  import unittest
  import pytest
  import fiona
  from fiona.errors import SchemaError
  from fiona.model import Feature
label_desc: Use image node_id 4 for calling the TestUnicodeStringField obj's underlying member method code with example usage: obj.test_write_utf8() without return types