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

        Args:
          key_path (str): path of the subkey.

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