code: def fidelity_grid(dim: Fidelity, num: int):
      """Build fidelity grid, that is, only top value"""
      return [dim.interval()[1]]
  
imports: from __future__ import annotations
  import itertools
  import logging
  import numpy
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Categorical, Dimension, Fidelity, Integer, Real, Space
  from orion.core.utils import format_trials
label_desc: Use image node_id 2 for calling a global function with example usage: fidelity_grid(dim, num) and returns: list