code: def _generate_trials(self, unresolved_spec, output_path=""):
          
  
          if "run" not in unresolved_spec:
              raise TuneError("Must specify `run` in {}".format(unresolved_spec))
          for _ in range(unresolved_spec.get("num_samples", 1)):
              for resolved_vars, spec in generate_variants(unresolved_spec):
                  experiment_tag = str(self._counter)
                  if resolved_vars:
                      experiment_tag += "_{}".format(resolved_vars)
                  self._counter += 1
                  yield create_trial_from_spec(
                      spec,
                      output_path,
                      self._parser,
                      experiment_tag=experiment_tag)
docs: Generates Trial objects with the variant generation process.
  
          Uses a fixed point iteration to resolve variants. All trials
          should be able to be generated at once.
  
          See also: `ray.tune.suggest.variant_generator`.
  
          Yields:
              Trial object