code: def makeNodeID(Rec, ndType, extras = None):
      
      if ndType == 'raw':
          recID = Rec
      else:
          recID = Rec.get(ndType)
      if recID is None:
          pass
      elif isinstance(recID, list):
          recID = tuple(recID)
      else:
          recID = recID
      extraDict = {}
      if extras:
          for tag in extras:
              if tag == "raw":
                  extraDict['Tag'] = Rec
              else:
                  extraDict['Tag'] = Rec.get(tag)
      return recID, extraDict
docs: Helper to make a node ID, extras is currently not used