code: def _get_random_id(
      size=6, chars=string.ascii_uppercase + string.digits
  ):
      """Return a random ID composed from digits and uppercase letters
  
      upper-case so we are tolerant to unlikely collisions on dummy FSs
      """
      return "".join(random.choice(chars) for _ in range(size))
  
imports: import hashlib
  import logging
  import os
  import random
  import string
  import tempfile
  from datalad import cfg
  from datalad.config import anything2bool
  from datalad.consts import ARCHIVES_TEMP_DIR
  from datalad.support.external_versions import external_versions
  from datalad.support.locking import lock_if_check_fails
  from datalad.support.path import abspath, exists, isabs, isdir
  from datalad.support.path import join
  from datalad.support.path import normpath, pardir, relpath
  from datalad.support.path import sep
  from datalad.utils import Path, any_re_search, ensure_bytes, ensure_unicode, get_tempfile_kwargs, on_windows, rmtemp, rmtree, unlink
label_desc: Use image node_id 3 for calling a global function with example usage: _get_random_id(size, chars) and returns: str