code: def append_non_relative_path(
      base_path: pathlib.Path, path_to_append: str
  ) -> pathlib.Path:
      # By default when second path starts with '/', it replaces the path we're appending to
      relative_path = (
          path_to_append[1:]
          if path_to_append.startswith("/")
          else path_to_append
      )
      return base_path / relative_path
  
imports: import hashlib
  import pathlib
label_desc: Use image node_id 2 for calling a global function with example usage: append_non_relative_path(base_path, path_to_append) and returns: unknown