code: def convert_str_seq(value: list[str] | str) -> list[str]:
      """Convert a string to a list of strings.
  
      If a list or tuple is passed in, it is returned as-is.
  
      Args:
          value (seq[str] or str) :
              A string to convert to a list of strings
  
      Returns
          list[str]
  
      """
      if isinstance(value, (list, tuple)):
          return value
  
      try:
          return value.split(",")
      except Exception:
          raise ValueError(f"Cannot convert {value} to list value")
  
imports: from __future__ import annotations
  import logging
  import os
  from os.path import join
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Callable, Generic, Literal, Sequence, TypeVar, Union, cast
  import yaml
  from .util.deprecation import deprecated
  from .util.paths import bokehjs_path, server_path
label_desc: Use image node_id 4 for calling a global function with example usage: convert_str_seq(value) and returns: value, value