code: def test_prepare_template(self):
      pig = "sh echo $DATE;"
      task_id = TEST_TASK_ID
  
      operator = PigOperator(pig=pig, task_id=task_id)
      operator.prepare_template()
      assert pig == operator.pig
  
      # converts when pigparams_jinja_translate = true
      operator = PigOperator(
          pig=pig, task_id=task_id, pigparams_jinja_translate=True
      )
      operator.prepare_template()
      assert "sh echo {{ DATE }};" == operator.pig
  
file_path: airflow/tests/providers/apache/pig/operators/test_pig.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.providers.apache.pig.hooks.pig import PigCliHook
  from airflow.providers.apache.pig.operators.pig import PigOperator
label_desc: Use image node_id 1 for calling the TestPigOperator obj's underlying member method code with example usage: obj.test_prepare_template() without return types