code: def output_dir(out_path):
      return out_path[:-8]
  
file_path: earthpy/earthpy/tests/test_crop_all.py
imports: import os
  import pytest
  from shapely.geometry import Polygon
  import earthpy.spatial
label_desc: Use image node_id 1 for calling a global function with example usage: output_dir(out_path) and returns: out_path