class_docstr: Class for keeping count of active task schedulers.
class_docstr_tok: ["Class","for","keeping","count","of","active","task","schedulers","."]
code: def __enter__(self):
      with self._lock:
          self._count += 1
  
imports: from concurrent import futures
  import datetime
  import sys
  import textwrap
  import threading
  import time
  import typing
  from typing import Dict, List, Optional
  from absl import logging
  import pytz
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import metadata
  from tfx.orchestration.experimental.core import constants
  from tfx.orchestration.experimental.core import mlmd_state
  from tfx.orchestration.experimental.core import pipeline_state
  from tfx.orchestration.experimental.core import post_execution_utils
  from tfx.orchestration.experimental.core import task
  from tfx.orchestration.experimental.core import task_queue
  from tfx.orchestration.experimental.core import task_scheduler
  from tfx.utils import status
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling the _ActiveSchedulerCounter obj's underlying member method code with example usage: obj.__enter__() without return types