code: def generated_history():
      domain = Domain(
          {"x": [-5.0, 6.0], "y": {"sin", "sqr"}, "z": set(range(4))},
          seed=7,
      )
      n_samples = 10
      history = [
          HistoryPoint(
              sample=domain.sample(),
              metrics={
                  "metric_1": EvaluationScore(float(i)),
                  "metric_2": EvaluationScore(i * 2.0),
              },
          )
          for i in range(n_samples)
      ]
      if len(history) == 1:
          history = history[0]
      return history, domain
  
label_desc: Use image node_id 1 for calling a global function with example usage: generated_history() and returns: history,  domain