docs: def valid_str(x: str) -> bool:
      """
      Return ``True`` if ``x`` is a non-blank string;
      otherwise return ``False``.
      """
      if isinstance(x, str) and x.strip():
          return True
      else:
          return False