code: def cores(self):
          
          if self._cores is not None:
              return self._cores
          elif self._config is not None:
              return self._config.defaultCores
          else:
              raise AttributeError("Default value for 'cores' cannot be determined")
docs: The number of CPU cores required.