code: def _grid_size_info(grid):
      if len(grid) == 1:
          return str(len(grid[0]))
      sizes = [len(candidates) for candidates in grid]
      mul = "×".join(str(s) for s in sizes)
      total = np.prod(sizes)
      return f"({mul}) = {total}"
  
imports: import logging
  import math
  import numpy
  from scipy.special import erfinv
  import nni
  from nni.common.hpo_utils import ParameterSpec, deformat_parameters, format_search_space
  from nni.tuner import Tuner
label_desc: Use image node_id 4 for calling a global function with example usage: _grid_size_info(grid) and returns: str, mul, str, total, str