import pathlib


def _suffix_directory(key: pathlib.Path):
  """Converts '/folder/.../folder/folder/folder' into 'folder/folder'"""
  key = pathlib.Path(key)
  shapenet_folder = key.parent.parent
  key = key.relative_to(shapenet_folder)
  return key