code: def test_override_encoding(gre_shp_cp1252):
      """utf-8 override succeeds"""
      with fiona.open(str(gre_shp_cp1252), encoding="utf-8") as src:
          assert src.session._get_internal_encoding() == "utf-8"
          assert next(iter(src))["properties"]["name_ru"] == "Гренада"
  
file_path: Fiona/tests/test_encoding.py
imports: from glob import glob
  import os
  import shutil
  import pytest
  import fiona
  from .conftest import requires_gdal2
label_desc: Use image node_id 4 for calling a global function with example usage: test_override_encoding(gre_shp_cp1252) without return types