code: def sniff_id_type(
      ids: Sequence[tuple[RecordID, RecordID]]
  ) -> RecordIDDType:
      example = ids[0][0]
      python_type = type(example)
      dtype: RecordIDDType
      if python_type is str:
          dtype = (str, 256)
      elif python_type is int:
          int(example)  # make sure we can cast to int
          dtype = int
      else:
          raise ValueError("Invalid type for record id")
  
      return dtype
  
imports: from __future__ import annotations
  import collections
  import functools
  import itertools
  import multiprocessing
  import multiprocessing.dummy
  import os
  import queue
  import tempfile
  from typing import TYPE_CHECKING, overload
  import numpy
  from dedupe.backport import RLock
label_desc: Use image node_id 11 for calling a global function with example usage: sniff_id_type(ids) and returns: dtype