code: async def get_model(self, model):
          
          uuids = await self.model_uuids()
          if model in uuids:
              uuid = uuids[model]
          else:
              uuid = model
  
          from juju.model import Model
          model = Model()
          kwargs = self.connection().connect_params()
          kwargs['uuid'] = uuid
          await model._connect_direct(**kwargs)
          return model
docs: Get a model by name or UUID.
  
          :param str model: Model name or UUID
          :returns Model: Connected Model instance.