def METHOD_NAME(item_id: str, output_dir: Path):
    request = requests.get(f"https://api.polyhaven.com/files/{item_id}", timeout=30)
    data = request.json()
    # Go over all available texture types
    for key in data.keys():
        # Filter out the ones we need
        if key in ["AO", "Displacement", "Diffuse", "rough_ao", "nor_gl", "Rough"]:
            # Check resolution is available
            if args.resolution not in data[key]:
                print(f"Skipping {key} texture {item_id} as the desired resolution is not available.")
                continue
            # Check format is available
            if args.format not in data[key][args.resolution]:
                print(f"Skipping {key} texture {item_id} as the desired format is not available.")
                continue
            # Download image
            download_url = data[key][args.resolution][args.format]["url"]
            download_file(download_url, output_dir / download_url.split("/")[-1])