code: async def is_expired(self):
          
          if asyncio.iscoroutinefunction(self.state):
              current_state = await self.state()
          else:
              current_state = self.state()
          if current_state:
              return current_state != "leased"
          return False
docs: Check and return Azure Blob Lease state using Storage API.