code: def upsert_index_document(
      self,
      index: str,
      id: str,
      document: Optional[Dict[str, Any]] = None,
      script: Optional[str] = None,
      partial_update: bool = False,
  ):
      pass
  
imports: import dataclasses
  from abc import ABCMeta, abstractmethod
  from typing import Any, Dict, Iterable, List, Optional, Set, Tuple
  from argilla.server.daos.backend.metrics.base import ElasticsearchMetric
  from argilla.server.daos.backend.search.model import BaseQuery, SortConfig
label_desc: Use image node_id 19 for calling the IClientAdapter obj's underlying member method code with example usage: obj.upsert_index_document(index, id, document, script, partial_update) without return types