code: def GetSubkeyByPath(self, key_path):
      
      subkey = self
      for path_segment in key_paths.SplitKeyPath(key_path):
        subkey = subkey.GetSubkeyByName(path_segment)
        if not subkey:
          break
  
      return subkey
docs: Retrieves a subkey by path.
  
      Args:
        key_path (str): path of the subkey.
  
      Returns:
        WinRegistryKey: Windows Registry subkey or None if not found.