code: def _to_file_pyogrio(
      df, filename, driver, schema, crs, mode, **kwargs
  ):
      import pyogrio
  
      if schema is not None:
          raise ValueError(
              "The 'schema' argument is not supported with the 'pyogrio' engine."
          )
  
      if mode == "a":
          kwargs["append"] = True
  
      if crs is not None:
          raise ValueError(
              "Passing 'crs' it not supported with the 'pyogrio' engine."
          )
  
      # for the fiona engine, this check is done in gdf.iterfeatures()
      if not df.columns.is_unique:
          raise ValueError(
              "GeoDataFrame cannot contain duplicated column names."
          )
  
      pyogrio.write_dataframe(df, filename, driver=driver, **kwargs)
  
imports: import os
  from packaging.version import Version
  from pathlib import Path
  import warnings
  import numpy
  import pandas
  from pandas.api.types import is_integer_dtype
  import pyproj
  from shapely.geometry import mapping
  from shapely.geometry.base import BaseGeometry
  from geopandas import GeoDataFrame, GeoSeries
  from urllib.parse import urlparse
  from urllib.parse import uses_netloc, uses_params, uses_relative
  import urllib.request
  from geopandas._compat import PANDAS_GE_20
label_desc: Use image node_id 17 for calling a global function with example usage: _to_file_pyogrio(df, filename, driver, schema, crs, mode) without return types