def GetSubkeyByName(self, name):
pyregf_key = self._pyregf_key.get_sub_key_by_name(name)<EOL>if not pyregf_key:<EOL><INDENT>return None<EOL><DEDENT>key_path = key_paths.JoinKeyPath([self._key_path, pyregf_key.name])<EOL>return REGFWinRegistryKey(pyregf_key, key_path=key_path)<EOL>
Retrieves a subkey by name.

        Args:
          name (str): name of the subkey.

        Returns:
          WinRegistryKey: Windows Registry subkey or None if not found.