<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def release_lock(self):
 """Release the global lock if it's held. Returns True if the lock was held before this call. :API: public """

    if not self._lock.acquired:
      return False
    else:
      self._lock.release()
      return True