code: def test_hitmeta_initialization_and_to_dict(self):
      hitmeta = HitMeta(self.HIT_DOCUMENT)
  
      assert hitmeta.id == "jdeZT4kBjAZqZnexVUxk"
      assert hitmeta.index == ".ds-filebeat-8.8.2-2023.07.09-000001"
      assert hitmeta.score == 2.482621
      assert hitmeta.doc_type == "_doc"
  
      expected_dict = {
          k[1:] if k.startswith("_") else k: v
          for (k, v) in self.HIT_DOCUMENT.items()
          if k != "_source"
      }
      expected_dict["doc_type"] = expected_dict.pop("type")
      assert hitmeta.to_dict() == expected_dict
  
imports: from __future__ import annotations
  from typing import Any
  import pytest
  from airflow.providers.elasticsearch.log.es_response import AttributeDict, AttributeList, ElasticSearchResponse, Hit, HitMeta, _wrap
  from airflow.providers.elasticsearch.log.es_task_handler import ElasticsearchTaskHandler
label_desc: Use image node_id 2 for calling the TestHitAndHitMetaAndElasticSearchResponse obj's underlying member method code with example usage: obj.test_hitmeta_initialization_and_to_dict() without return types