code: def pretty_print_semaphore(semaphore):
      if semaphore is None:
          return "None"
      return f"Semaphore(value={semaphore._value}, locked={semaphore.locked()})"
  
file_path: ml-ferret/ferret/utils.py
imports: import datetime
  import logging
  import logging.handlers
  import os
  import sys
  import requests
  from ferret.constants import LOGDIR
label_desc: Use image node_id 4 for calling a global function with example usage: pretty_print_semaphore(semaphore) and returns: str, semaphore, str, semaphore, str, str