class_docstr: High-level API class for running hyperparameter optimisation.
  This class encapsulates optimiser querying, job building, scheduling and
  results collection as well as checkpointing and report generation.
code: def _init_job(device: str) -> Type[Job]:
      device = device.lower()
      if device == "local":
          return Job
      if device == "slurm":
          return SlurmJob
      raise ValueError(
          f"Unknown device {device}. Select one from {{'local', 'slurm'}}."
      )
  
file_path: hypertunity/hypertunity/trial.py
imports: from typing import Callable, Type, Union
  from hypertunity import optimisation, reports, utils
  from hypertunity.domain import Domain
  from hypertunity.optimisation import Optimiser
  from hypertunity.reports import Reporter
  from hypertunity.scheduling import Job, Scheduler, SlurmJob
label_desc: Use image node_id 4 for calling the Trial obj's underlying member method code with example usage: obj._init_job(device) and returns: Job, SlurmJob