code: def test_field_truncation_issue177(tmpdir):
      name = str(tmpdir.join("output.shp"))
  
      kwargs = {
          "driver": "ESRI Shapefile",
          "crs": "EPSG:4326",
          "schema": {
              "geometry": "Point",
              "properties": [("a_fieldname", "float")],
          },
      }
  
      with fiona.open(name, "w", **kwargs) as dst:
          rec = {}
          rec["geometry"] = {"type": "Point", "coordinates": (0, 0)}
          rec["properties"] = {"a_fieldname": 3.0}
          dst.write(Feature.from_dict(**rec))
  
      with fiona.open(name) as src:
          first = next(iter(src))
          assert first.geometry.type == "Point"
          assert first.geometry.coordinates == (0, 0)
          assert first.properties["a_fieldnam"] == 3.0
  
imports: import os
  import tempfile
  import pytest
  import fiona
  from fiona.drvsupport import driver_mode_mingdal
  from fiona.env import GDALVersion
  from fiona.errors import SchemaError, UnsupportedGeometryTypeError, DriverSupportError
  from fiona.model import Feature
  from fiona.schema import FIELD_TYPES, normalize_field_type
  from .conftest import get_temp_filename
  from .conftest import requires_only_gdal1, requires_gdal2
label_desc: Use image node_id 3 for calling a global function with example usage: test_field_truncation_issue177(tmpdir) without return types