code: def env(ctx, key):
      """Print information about the Fiona environment: available
      formats, etc.
      """
      stdout = click.get_text_stream("stdout")
      with ctx.obj["env"] as env:
          if key == "formats":
              for k, v in sorted(fiona.supported_drivers.items()):
                  modes = ", ".join("'" + m + "'" for m in v)
                  stdout.write(f"{k} (modes {modes})\n")
              stdout.write("\n")
          elif key == "credentials":
              click.echo(json.dumps(env.session.credentials))
          elif key == "gdal_data":
              click.echo(
                  os.environ.get("GDAL_DATA")
                  or GDALDataFinder().search()
              )
          elif key == "proj_data":
              click.echo(
                  os.environ.get(
                      "PROJ_DATA", os.environ.get("PROJ_LIB")
                  )
                  or PROJDataFinder().search()
              )
  
imports: import json
  import os
  import click
  import fiona
  from fiona._env import GDALDataFinder, PROJDataFinder
label_desc: Use image node_id 1 for calling a global function with example usage: env(ctx, key) without return types