docstr: Get evaluation dataset.  The dataset needs to be loaded first with [`~optimum.runs_base.Run.load_datasets`].
  
  Returns:
      `datasets.Dataset`: Evaluation dataset.
docstr_tok: ["Get","evaluation","dataset",".","The","dataset","needs","to","be","loaded","first","with","[","`","~optimum.runs_base.Run.load_datasets","`","]",".","Returns",":","`","datasets.Dataset","`",":","Evaluation","dataset","."]
code: def get_eval_dataset(self):
      """
      Get evaluation dataset.  The dataset needs to be loaded first with [`~optimum.runs_base.Run.load_datasets`].
  
      Returns:
          `datasets.Dataset`: Evaluation dataset.
      """
      if not hasattr(self, "_eval_dataset"):
          raise KeyError("No evaluation dataset defined for this run.")
      return self._eval_dataset
  
imports: import os
  import subprocess
  from contextlib import contextmanager
  from time import perf_counter_ns
  from typing import Set
  import numpy
  import optuna
  import torch
  import transformers
  from datasets import Dataset
  from tqdm import trange
  from .None import version
  from .utils.preprocessing import ImageClassificationProcessing, QuestionAnsweringProcessing, TextClassificationProcessing, TokenClassificationProcessing
  from .utils.runs import RunConfig, cpu_info_command
label_desc: Use image node_id 7 for calling the Run obj's underlying member method code with example usage: obj.get_eval_dataset() and returns: self