class_docstr: Abstract base class for a file lock object.
docstr: :return: The number of times this lock has been acquired (but not yet released).
code: def lock_counter(self) -> int:
      """:return: The number of times this lock has been acquired (but not yet released)."""
      return self._context.lock_counter
  
imports: from __future__ import annotations
  import contextlib
  import logging
  import os
  import time
  import warnings
  from abc import ABC, abstractmethod
  from dataclasses import dataclass
  from threading import local
  from typing import TYPE_CHECKING, Any, ClassVar
  from weakref import WeakValueDictionary
  from ._error import Timeout
label_desc: Use image node_id 11 for calling the BaseFileLock obj's underlying member method code with example usage: obj.lock_counter() and returns: self