code: def test_xcom_deserialize_pickle_when_xcom_pickling_is_disabled(
      self, task_instance, session
  ):
      with conf_vars({("core", "enable_xcom_pickling"): "True"}):
          XCom.set(
              key="xcom_test3",
              value={"key": "value"},
              dag_id=task_instance.dag_id,
              task_id=task_instance.task_id,
              run_id=task_instance.run_id,
              session=session,
          )
      with conf_vars({("core", "enable_xcom_pickling"): "False"}):
          with pytest.raises(UnicodeDecodeError):
              XCom.get_one(
                  key="xcom_test3",
                  dag_id=task_instance.dag_id,
                  task_id=task_instance.task_id,
                  run_id=task_instance.run_id,
                  session=session,
              )
  
imports: from __future__ import annotations
  import datetime
  import operator
  import os
  from typing import TYPE_CHECKING
  from unittest import mock
  from unittest.mock import MagicMock
  import pytest
  from airflow.configuration import conf
  from airflow.models.dagrun import DagRun, DagRunType
  from airflow.models.taskinstance import TaskInstance
  from airflow.models.taskinstancekey import TaskInstanceKey
  from airflow.models.xcom import BaseXCom, XCom, resolve_xcom_backend
  from airflow.operators.empty import EmptyOperator
  from airflow.settings import json
  from airflow.utils import timezone
  from airflow.utils.session import create_session
  from airflow.utils.xcom import XCOM_RETURN_KEY
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 5 for calling the TestXCom obj's underlying member method code with example usage: obj.test_xcom_deserialize_pickle_when_xcom_pickling_is_disabled(task_instance, session) without return types