code: def select_all(self, model: Optional[Type[T]] = None) -> List[T]:
      cls = model if model else self.model
      resp = self.session.post(
          self.db_url + "/select_all/",
          data=_GeneralModel.from_cls(cls, token=self.token).json(),
      )
      assert resp.status_code == 200
      return [cls(**data) for data in resp.json()]
  
file_path: pytorch-lightning/src/lightning/app/components/database/client.py
imports: from typing import Any, Dict, List, Optional, Type, TypeVar
  import requests
  from requests import Session
  from requests.adapters import HTTPAdapter
  from urllib3.util.retry import Retry
  from lightning.app.components.database.utilities import _GeneralModel
label_desc: Use image node_id 2 for calling the DatabaseClient obj's underlying member method code with example usage: obj.select_all(model) and returns: unknown