code: def check_header(url, from_google=False):
      """
      Performs a HEAD request to check if the URL / Google Drive ID is live.
      """
      session = requests.Session()
      if from_google:
          URL = "https://docs.google.com/uc?export=download"
          response = session.head(URL, params={"id": url}, stream=True)
      else:
          headers = {
              "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) "
              + "AppleWebKit/537.36 (KHTML, like Gecko) "
              + "Chrome/77.0.3865.90 Safari/537.36"
          }
          response = session.head(
              url, allow_redirects=True, headers=headers
          )
      status = response.status_code
      session.close()
  
      assert status == 200, (
          "The url {} is broken. If this is not your own url,"
          + " please open up an issue on GitHub"
      ).format(url)
  
imports: import collections
  import datetime
  import hashlib
  import io
  import json
  import os
  import shutil
  import time
  from pathlib import Path
  import numpy
  import requests
  import tqdm
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_absolute_path
  from PIL import Image
label_desc: Use image node_id 4 for calling a global function with example usage: check_header(url, from_google) without return types