code: def test_fetch_openml_forcing_targets(
      monkeypatch, parser, target_column
  ):
      """Check that we can force the target to not be the default target."""
      pd = pytest.importorskip("pandas")
  
      data_id = 61
      _monkey_patch_webbased_functions(monkeypatch, data_id, True)
      bunch_forcing_target = fetch_openml(
          data_id=data_id,
          as_frame=True,
          cache=False,
          target_column=target_column,
          parser=parser,
      )
      bunch_default = fetch_openml(
          data_id=data_id,
          as_frame=True,
          cache=False,
          parser=parser,
      )
  
      pd.testing.assert_frame_equal(
          bunch_forcing_target.frame, bunch_default.frame
      )
      if isinstance(target_column, list):
          pd.testing.assert_index_equal(
              bunch_forcing_target.target.columns,
              pd.Index(target_column),
          )
          assert bunch_forcing_target.data.shape == (150, 3)
      else:
          assert bunch_forcing_target.target.name == target_column
          assert bunch_forcing_target.data.shape == (150, 4)
  
imports: import gzip
  import json
  import os
  import re
  from functools import partial
  from importlib import resources
  from io import BytesIO
  from urllib.error import HTTPError
  import numpy
  import pytest
  import scipy.sparse
  import sklearn
  from sklearn import config_context
  from sklearn.datasets import fetch_openml
  from sklearn.datasets._openml import _OPENML_PREFIX, _get_local_path, _open_openml_url, _retry_with_clean_cache
  from sklearn.utils import Bunch, check_pandas_support
  from sklearn.utils._testing import SkipTest, assert_allclose, assert_array_equal, fails_if_pypy
label_desc: Use image node_id 7 for calling a global function with example usage: test_fetch_openml_forcing_targets(monkeypatch, parser, target_column) without return types