code: def output_dir(out_path):
      return op.dirname(out_path)
  
file_path: earthpy/earthpy/tests/test_epsg.py
imports: import pytest
  import rasterio
  import os.path
  import earthpy
  import earthpy.spatial
  from earthpy.io import path_to_example
label_desc: Use image node_id 1 for calling a global function with example usage: output_dir(out_path) and returns: op