code: def test_execute(
      self, mock_tmp_file, mock_hive_hook, mock_samba_hook
  ):
      type(mock_tmp_file).name = PropertyMock(return_value="tmp_file")
      mock_tmp_file.return_value.__enter__ = Mock(
          return_value=mock_tmp_file
      )
      context = {}
  
      HiveToSambaOperator(**self.kwargs).execute(context)
  
      mock_hive_hook.assert_called_once_with(
          hiveserver2_conn_id=self.kwargs["hiveserver2_conn_id"]
      )
      mock_hive_hook.return_value.to_csv.assert_called_once_with(
          self.kwargs["hql"],
          csv_filepath=mock_tmp_file.name,
          hive_conf=context_to_airflow_vars(context),
      )
      mock_samba_hook.assert_called_once_with(
          samba_conn_id=self.kwargs["samba_conn_id"]
      )
      mock_samba_hook.return_value.push_from_local.assert_called_once_with(
          self.kwargs["destination_filepath"], mock_tmp_file.name
      )
  
file_path: airflow/tests/providers/apache/hive/transfers/test_hive_to_samba.py
imports: from __future__ import annotations
  import os
  from unittest.mock import MagicMock, Mock, PropertyMock, patch
  import pytest
  from airflow.providers.apache.hive.transfers.hive_to_samba import HiveToSambaOperator
  from airflow.providers.samba.hooks.samba import SambaHook
  from airflow.utils.operator_helpers import context_to_airflow_vars
  from tests.providers.apache.hive import DEFAULT_DATE, MockConnectionCursor, MockHiveServer2Hook, TestHiveEnvironment
label_desc: Use image node_id 2 for calling the TestHive2SambaOperator obj's underlying member method code with example usage: obj.test_execute(mock_tmp_file, mock_hive_hook, mock_samba_hook) without return types