code: def _squeeze_cat(results, combine: bool, squeeze: bool):
      """Squeeze and concatenate the results depending on values of
      `combine` and `squeeze`."""
      if combine:
          results = np.concatenate(results)
          if not squeeze:
              results = [results]
      else:
          if squeeze and len(results) == 1:
              results = results[0]
      return results
  
imports: import itertools
  import logging
  import warnings
  from abc import ABC
  from typing import Any, Dict, List, Mapping, Optional, Sequence, Set, Sized, Tuple, TypeVar, Union, cast
  import numpy
  from pymc.backends.report import SamplerReport
  from pymc.model import modelcontext
  from pymc.util import get_var_name
label_desc: Use image node_id 1 for calling a global function with example usage: _squeeze_cat(results, combine, squeeze) and returns: results