code: def _find_family_class(dev):
          
          for familyInfo in FAMILIES:
              # Skip if wrong vendor.
              if dev.vendor != familyInfo.vendor:
                  continue
  
              # Scan each level of families
              for familyName in dev.families:
                  for regex in familyInfo.matches:
                      # Require the regex to match the entire family name.
                      match = regex.match(familyName)
                      if match and match.span() == (0, len(familyName)):
                          return familyInfo.klass
          else:
              # Default target superclass.
              return CoreSightTarget
docs: ! @brief Search the families list for matching entry.