<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetch_all_objects_from_db_by_pklist(self, cls: Type, table: str, fieldlist: Sequence[str], pklist: Sequence[Any], construct_with_pk: bool, *args) -> List[T]: """Fetches all objects from a table, given a list of PKs."""

        objarray = []
        for pk in pklist:
            if construct_with_pk:
                obj = cls(pk, *args)  # should do its own fetching
            else:
                obj = cls(*args)
                self.fetch_object_from_db_by_pk(obj, table, fieldlist, pk)
            objarray.append(obj)
        return objarray