code: def _reflink_macos(existing_path: Path, new_path: Path) -> None:
      try:
          clib = ctypes.CDLL("libc.dylib", use_errno=True)
      except (FileNotFoundError, OSError) as e:
          if ctypes.get_errno() != errno.ENOENT and not isinstance(
              e, FileNotFoundError
          ):
              raise
          # Before macOS 11 (<Nov 2020) clib was in libSystem.dylib, so we can try there.
          clib = ctypes.CDLL("/usr/lib/libSystem.dylib", use_errno=True)
  
      try:
          clonefile = clib.clonefile
      except AttributeError:
          raise OSError(
              errno.ENOTSUP,
              "'clonefile' is not available on this system",
          )
  
      clonefile.argtypes = (
          ctypes.c_char_p,
          ctypes.c_char_p,
          ctypes.c_int,
      )
      clonefile.restype = ctypes.c_int
  
      if clonefile(
          os.fsencode(existing_path),
          os.fsencode(new_path),
          ctypes.c_int(0),
      ):
          # Anything other than 0 is an error.
          err = ctypes.get_errno()
          raise OSError(err, os.strerror(err), existing_path)
  
imports: import contextlib
  import ctypes
  import errno
  import logging
  import os
  import platform
  import re
  import shutil
  import tempfile
  import threading
  from pathlib import Path
  from typing import IO, Any, BinaryIO, Generator, Optional
  from wandb.sdk.lib.paths import StrPath
label_desc: Use image node_id 9 for calling a global function with example usage: _reflink_macos(existing_path, new_path) without return types