code: def mark_done(path: Union[Path, str]) -> None:
      """Create ``.done`` empty file in the directory.
  
      Args:
          path: Path to directory.
  
      Raises:
          NotADirectoryError: If ``path`` does not point to a directory.
  
      """
      path = Path(path)
      if not path.is_dir():
          raise NotADirectoryError(f"Not a directory: '{path}'")
      mark = path / _MARK_DONE
      mark.touch(exist_ok=True)
  
imports: import collections
  import gzip
  import os
  import secrets
  import shutil
  import tarfile
  import zipfile
  from hashlib import md5
  from itertools import chain
  from logging import getLogger
  from pathlib import Path
  from typing import Any, Generator, Iterable, List, Mapping, Optional, Sequence, Sized, Union, Collection
  from urllib.parse import urlencode, parse_qs, urlsplit, urlunsplit, urlparse
  import numpy
  import requests
  from tqdm import tqdm
label_desc: Use image node_id 10 for calling a global function with example usage: mark_done(path) without return types