code: def _get(entry):
      """A helper to get the value, be it a callable or callable with args, or value"""
      if isinstance(entry, (tuple, list)):
          func, args = entry
          return func(*args)
      elif callable(entry):
          return entry()
      else:
          return entry
  
file_path: datalad/datalad/support/locking.py
imports: from fasteners import InterProcessLock, try_lock
  from contextlib import contextmanager
  from .path import exists
  from ..utils import ensure_unicode, get_open_files, unlink
  from datalad.support.exceptions import CapturedException
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: _get(entry) and returns: func, entry, entry