code: def get_param_column_sizes(
      space: list, names: List[str]
  ) -> List[int]:
      """Determine maximum column sizes for displaying values of each hyperparameter in `space`
  
      Parameters
      ----------
      space: List
          Hyperparameter search space dimensions for the current Optimization Protocol
      names: List[str]
          Cleaned hyperparameter dimension names
  
      Returns
      -------
      sizes: List[int]
          Column sizes for each of the hyperparameters in `names`"""
      sizes = [max(len(_), 7) for _ in names]
      for i, dim in enumerate(space):
          if isinstance(dim, Categorical):
              str_categories = [
                  getattr(_, "name", str(_)) for _ in dim.categories
              ]
              sizes[i] = max(
                  sizes[i], *[len(_) for _ in str_categories]
              )
      return sizes
  
imports: from hyperparameter_hunter.i_o import exceptions
  from hyperparameter_hunter.space.dimensions import Categorical
  from hyperparameter_hunter.settings import G
  from hyperparameter_hunter.utils.general_utils import now_time, expand_mins_secs
  from contextlib import suppress
  from datetime import datetime
  import inspect
  import logging
  import os.path
  import sys
  from typing import List
label_desc: Use image node_id 2 for calling a global function with example usage: get_param_column_sizes(space, names) and returns: sizes