code: def ensure_deletable(path, consider_lock_dead_if_created_before):
      """checks if a lock exists and breaks it if its considered dead"""
      if path.is_symlink():
          return False
      lock = get_lock_path(path)
      if not lock.exists():
          return True
      try:
          lock_time = lock.stat().st_mtime
      except Exception:
          return False
      else:
          if lock_time < consider_lock_dead_if_created_before:
              lock.unlink()
              return True
          else:
              return False
  
imports: from __future__ import absolute_import
  import atexit
  import errno
  import fnmatch
  import itertools
  import operator
  import os
  import shutil
  import sys
  import uuid
  import warnings
  from functools import partial
  from functools import reduce
  from os.path import expanduser
  from os.path import expandvars
  from os.path import isabs
  from os.path import sep
  from posixpath import sep
  import six
  from six.moves import map
  from .compat import PY36
  from _pytest.warning_types import PytestWarning
label_desc: Use image node_id 13 for calling a global function with example usage: ensure_deletable(path, consider_lock_dead_if_created_before) and returns: False, True, False, True, False