code: def select_dag_nodes(reftrack):
      
      refobj = reftrack.get_refobj()
      if not refobj:
          return
      parentns = common.get_namespace(refobj)
      ns = cmds.getAttr("%s.namespace" % refobj)
      fullns = ":".join((parentns.rstrip(":"), ns.lstrip(":")))
      c = cmds.namespaceInfo(fullns, listOnlyDependencyNodes=True, dagPath=True, recurse=True)
      dag = cmds.ls(c, dag=True, ap=True)
      cmds.select(dag, replace=True)
docs: Select all dag nodes of the given reftrack
  
      :param reftrack: The reftrack to select the dagnodes for
      :type reftrack: :class:`jukeboxcore.reftrack.Reftrack`
      :returns: None
      :rtype: None
      :raises: None