code: def test_opendistro_strip_comments() -> None:
      """
      DB Eng Specs (opendistro): Test execute sql strip comments
      """
      from superset.db_engine_specs.elasticsearch import (
          OpenDistroEngineSpec,
      )
  
      mock_cursor = MagicMock()
      mock_cursor.execute.return_value = []
  
      OpenDistroEngineSpec.execute(
          mock_cursor, "-- some comment \nSELECT 1\n --other comment"
      )
      mock_cursor.execute.assert_called_once_with("SELECT 1\n")
  
file_path: superset/tests/unit_tests/db_engine_specs/test_elasticsearch.py
imports: from datetime import datetime
  from typing import Any, Optional
  from unittest.mock import MagicMock
  import pytest
  from sqlalchemy import column
  from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
  from tests.unit_tests.fixtures.common import dttm
label_desc: Use image node_id 4 for calling a global function with example usage: test_opendistro_strip_comments() without return types