code: def get_hw_family(self, version_text):
          
          family = None
          if version_text is None:
              return family
  
          match = re.search(self.platform_re, version_text, re.MULTILINE)
          if match:
              self.platform_string = match.group()
              self.log("Platform string: {}".format(match.group()))
              self.raw_family = match.group(1)
              # sort keys on len reversed (longest first)
              for key in sorted(self.families, key=len, reverse=True):
                  if self.raw_family.startswith(key):
                      family = self.families[key]
                      break
              else:
                  self.log("Platform {} not supported".format(family))
          else:
              self.log("Platform string not present. Refer to CSCux08958")
          return family
docs: Return the HW family information from the device.