def available_permits(self):
return self._encode_invoke(semaphore_available_permits_codec)<EOL>
Returns the current number of permits currently available in this semaphore.

    * This method is typically used for debugging and testing purposes.
:return: (int), the number of available permits in this semaphore.