code: def output_folder(pytestconfig: Any) -> Path:
      """Fixture that returns the directory that is used for all test failures information.
  
      This includes:
      - snapshot-tests-failures: This directory contains all the snapshots that did not
      match with the snapshots from past runs. The folder structure is based on the folder
      structure used in the main snapshots folder.
      - snapshot-updates: This directory contains all the snapshots that got updated in
      the current run based on folder structure used in the main snapshots folder.
      """
      return Path(pytestconfig.getoption("--output")).resolve()
  
imports: from __future__ import annotations
  import hashlib
  import os
  import re
  import shlex
  import shutil
  import socket
  import subprocess
  import sys
  import time
  from io import BytesIO
  from pathlib import Path
  from random import randint
  from tempfile import TemporaryFile
  from types import ModuleType
  from typing import Any, Dict, Generator, List, Literal, Protocol, Tuple
  from urllib import parse
  import pytest
  import requests
  from PIL import Image
  from playwright.sync_api import ElementHandle, Locator, Page
  from pytest import FixtureRequest
label_desc: Use image node_id 18 for calling a global function with example usage: output_folder(pytestconfig) and returns: Path