code: async def get_action_output(self, action_uuid, wait=None):
          action_facade = client.ActionFacade.from_connection(
              self.connection()
          )
          entity = [{'tag': tag.action(action_uuid)}]
          async def _wait_for_action_status():
              while True:
                  action_output = await action_facade.Actions(entity)
                  if action_output.results[0].status in ('completed', 'failed'):
                      return
                  else:
                      await asyncio.sleep(1)
          await asyncio.wait_for(
              _wait_for_action_status(),
              timeout=wait)
          action_output = await action_facade.Actions(entity)
          if action_output.results[0].output is None:
              output = {}
          else:
              output = action_output.results[0].output
          return output