def ResetFailureCount():
  try:
    global failure_count
    if isinstance(failure_count, int):
      failure_count = 0
    else:  # It's a multiprocessing.Value() of type 'i'.
      failure_count = multiprocessing.Value('i', 0)
  except NameError:  # If it wasn't initialized, Apply() wasn't called.
    pass
Test selection with virtual filter
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/command.py/ResetFailureCount--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/ResourceSelectTests.testSelectVirtualFilter