def suggest(self, trial_id: str):
    if self._max_concurrent:
        if (len(self._live_trial_mapping) >= self._max_concurrent):
            return None
    suggestion_kwargs = {}
    if self._points_to_evaluate:
        config = self._points_to_evaluate.pop(0)
        suggestion_kwargs = {'assignments': config}
    suggestion = self.conn.experiments(self.experiment.id).suggestions().create(**suggestion_kwargs)
    self._live_trial_mapping[trial_id] = suggestion.id
    return copy.deepcopy(suggestion.assignments)
def suggest(self, trial_id: str):
    if self._max_concurrent:
        if (len(self._live_trial_mapping) >= self._max_concurrent):
            return None
    suggestion_kwargs = {}
    if self._points_to_evaluate:
        config = self._points_to_evaluate.pop(0)
        suggestion_kwargs = {'assignments': config}
    suggestion = self.conn.experiments(self.experiment.id).suggestions().create(**suggestion_kwargs)
    self._live_trial_mapping[trial_id] = suggestion.id
    return copy.deepcopy(suggestion.assignments)