<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_models(self, model, page=None):
 """Get all the models from the server. Args: model (string):
 The class as a string. page (string, optional):
 The page number as a string Returns: list: A list of instances of the requested model. """

        if page is not None:
            return self._store.find_all(self._get_model_class(model), params={'page': int(page)})
        else:
            return self._store.find_all(self._get_model_class(model))