code: def _CreateWindowsPathResolver(
        self, file_system, mount_point, environment_variables):
      
      if environment_variables is None:
        environment_variables = []
  
      path_resolver = windows_path_resolver.WindowsPathResolver(
          file_system, mount_point)
  
      for environment_variable in environment_variables:
        name = environment_variable.name.lower()
        if name not in ('systemroot', 'userprofile'):
          continue
  
        path_resolver.SetEnvironmentVariable(
            environment_variable.name, environment_variable.value)
  
      return path_resolver
docs: Create a Windows path resolver and sets the environment variables.
  
      Args:
        file_system (dfvfs.FileSystem): file system.
        mount_point (dfvfs.PathSpec): mount point path specification.
        environment_variables (list[EnvironmentVariableArtifact]): environment
            variables.
  
      Returns:
        dfvfs.WindowsPathResolver: Windows path resolver.