code: def _detect_pathlib_path(p):
      if (3, 4) <= sys.version_info:
          import pathlib
  
          if isinstance(p, pathlib.PurePath):
              return True
      return False
  
imports: import datetime
  import io
  from os import linesep
  import re
  import sys
  from toml.tz import TomlTz
label_desc: Use image node_id 1 for calling a global function with example usage: _detect_pathlib_path(p) and returns: False, True