code: def link_ok(
      match_tuple: MatchTuple,
  ) -> Tuple[MatchTuple, bool, Optional[str]]:
      reason: Optional[str] = None
      if match_tuple.link.startswith("http"):
          result_ok, reason = url_ok(match_tuple)
      else:
          result_ok = path_ok(match_tuple)
      print(f"  {'✓' if result_ok else '✗'} {match_tuple.link}")
      return match_tuple, result_ok, reason
  
file_path: allennlp/scripts/check_links.py
imports: import re
  import sys
  import pathlib
  import os
  from multiprocessing.dummy import Pool
  from typing import Tuple, NamedTuple, Optional
  import requests
label_desc: Use image node_id 3 for calling a global function with example usage: link_ok(match_tuple) and returns: match_tuple,  result_ok,  reason