code: def with_advice_suffix(accel: Union[Accelerator, str], s: str) -> str:
      """Accepts either an accelerator instance or a string as its first arg (the str
      can be 'gpu' or 'tpu', or any cased version of those) and a message string.
  
      Returns a string with a suffix appended that links to the GPU or CPU
      breakdown page, depending on the accelerator type.
  
      """
      if isinstance(accel, str):
          is_gpu = accel.upper() == "GPU"
      else:
          is_gpu = accel in GPU
  
      ucase = accelerator_name(is_gpu)
  
      if is_gpu:
          url = "https://cloud.google.com/ml-engine/docs/using-gpus"
      else:
          url = "https://cloud.google.com/ml-engine/docs/tensorflow/using-tpus"
  
      return """{s}
  For more help, consult this page for valid combinations of {ucase} count, {ucase} type and machine type:
  {url}
  """.format_map(
          {"s": s, "ucase": ucase, "url": url}
      )
  
imports: import argparse
  from enum import Enum
  from typing import Callable, List, NamedTuple, Optional, Set, Union
  import caliban.util
label_desc: Use image node_id 4 for calling a global function with example usage: with_advice_suffix(accel, s) and returns: str