code: def is_string_like(s: Any) -> TypeGuard[StringLike]:
      """Return ``True`` if ``s`` is of type ``str`` or :class:`CString`."""
      return isinstance(s, (str, CString))
  
imports: import os
  from typing import Any, Union
  from typing_extensions import TypeAlias, TypeGuard
  from fairseq2.data.cstring import CString
label_desc: Use image node_id 1 for calling a global function with example usage: is_string_like(s) and returns: isinstance