code: def __release_location(self) -> None:
          
          if self._is_active:
              LogdirWriter._locked_locations.remove(self._location)
              self._is_active = False
docs: Releases the lock on the location used by this writer. Will do nothing if the lock is
          already released.