code: def detect(self, obj):
          
          links = obj.get(LINKS_KEY, {})
  
          for detector in [LATEST, DRAFT_3]:
              if detector.draft.curies_rel in links:
                  return detector.detect(obj)
  
          return LATEST.detect(obj)
docs: Identifies the HAL draft level of a given JSON object.