code: def request_etag(
      url: str,
      token: Optional[Union[str, bool]] = None,
      use_auth_token: Optional[Union[str, bool]] = "deprecated",
  ) -> Optional[str]:
      if use_auth_token != "deprecated":
          warnings.warn(
              "'use_auth_token' was deprecated in favor of 'token' in version 2.14.0 and will be removed in 3.0.0.\n"
              f"You can remove this warning by passing 'token={use_auth_token}' instead.",
              FutureWarning,
          )
          token = use_auth_token
      if urlparse(url).scheme not in ("http", "https"):
          return None
      headers = get_authentication_headers_for_url(url, token=token)
      response = http_head(url, headers=headers, max_retries=3)
      response.raise_for_status()
      etag = response.headers.get("ETag") if response.ok else None
      return etag
  
imports: import copy
  import io
  import json
  import multiprocessing
  import os
  import posixpath
  import re
  import shutil
  import sys
  import time
  import urllib
  import warnings
  from contextlib import closing, contextmanager
  from functools import partial
  from pathlib import Path
  from typing import Optional, TypeVar, Union
  from unittest.mock import patch
  from urllib.parse import urljoin, urlparse
  import fsspec
  import huggingface_hub
  import requests
  from fsspec.core import strip_protocol
  from fsspec.utils import can_be_local
  from huggingface_hub.utils import insecure_hashlib
  from packaging import version
  from ..None import __version__, config
  from ..download.download_config import DownloadConfig
  from .None import _tqdm, logging
  from .None import tqdm
  from ._filelock import FileLock
  from .extract import ExtractManager
label_desc: Use image node_id 24 for calling a global function with example usage: request_etag(url, token, use_auth_token) and returns: etag, None