<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pks_from_objects(self, objects):
 """ Extract all the primary key strings from the given objects. Objects may be Versionables, or bare primary keys. :rtype : set """

        return {o.pk if isinstance(o, Model) else o for o in objects}