code: def str_is_path(p: str) -> bool:
      """Detects if the variable contains absolute paths. If so, we distinguish
      paths that exist and paths that are images.
  
      Args:
          p: the Path
  
      Returns:
          True is is an absolute path
      """
      try:
          path = Path(p)
          if path.is_absolute():
              return True
          else:
              return False
      except TypeError:
          return False
  
file_path: sweetviz/sweetviz/from_profiling_pandas.py
imports: from urllib.parse import urlparse
  from pathlib import Path
  import pandas
  from sweetviz.config import config
label_desc: Use image node_id 6 for calling a global function with example usage: str_is_path(p) and returns: True, False, False