code: async def get_models(self, all_=False, username=None):
          
          controller_facade = client.ControllerFacade.from_connection(
              self.connection())
          for attempt in (1, 2, 3):
              try:
                  return await controller_facade.AllModels()
              except errors.JujuAPIError as e:
                  # retry concurrency error until resolved in Juju
                  # see: https://bugs.launchpad.net/juju/+bug/1721786
                  if 'has been removed' not in e.message or attempt == 3:
                      raise
docs: .. deprecated:: 0.7.0
             Use :meth:`.list_models` instead.