code: def __init__(self, pthspec):
      msg = (
          "Pathspec %s is invalid. Pathspec is required of form `flowname/runid/stepname/taskid`"
          % pthspec
      )
      super().__init__(msg=msg, lineno=None)
  
imports: from metaflow.exception import MetaflowException
  import traceback
  import re
label_desc: Use image node_id 1 to create a new IncorrectPathspecException object from inherited base classes: MetaflowException with example: obj = IncorrectPathspecException(pthspec)