code: def __call__(self, q):
      with lock_if_check_fails(
          False, self.tempfile, blocking=False, _return_acquired=True
      ) as (_, lock2, acquired):
          # we used to check for .acquired here but it was removed from
          # fasteners API: https://github.com/harlowja/fasteners/issues/71
          q.put(acquired)
  
file_path: datalad/datalad/support/tests/test_locking.py
imports: import os
  import os.path
  import sys
  from pathlib import Path
  from time import time
  from fasteners import InterProcessLock
  from datalad.tests.utils_pytest import assert_false, assert_greater, assert_in, assert_not_in, assert_raises, assert_true, eq_, ok_, ok_exists, on_osx, with_tempfile
  from ...cmd import CommandError, StdOutErrCapture, WitlessRunner
  from ...utils import ensure_unicode
  from ..locking import lock_if_check_fails, try_lock_informatively
label_desc: Use image node_id 2 for calling the Subproc obj's underlying member method code with example usage: obj.__call__(q) without return types