code: def test_FeatureInteractionVisualization__fig_args(
      x_type, y_type, hue_type, swapped
  ):
      y = 2
      hue = 3
      _y, _y_type, _hue, _hue_type = FeatureInteractionVisualization(
          key="abc"
      )._swap_y_and_hue_if_necessary(x_type, y, y_type, hue, hue_type)
      if swapped:
          assert _hue == y
          assert _hue_type == y_type
          assert _y is None
          assert _y_type is None
      else:
          assert _y == y
          assert _y_type == y_type
          assert _hue == hue
          assert _hue_type == hue_type
  
imports: from unittest.mock import ANY, MagicMock
  import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  import scipy
  import seaborn
  from hamcrest.library.integration import match_equality
  from pandas import DataFrame
  from sklearn.inspection import PartialDependenceDisplay
  import autogluon.eda.auto
  from autogluon.common.features.types import R_BOOL, R_CATEGORY, R_FLOAT, R_INT, R_OBJECT
  from autogluon.eda import AnalysisState
  from autogluon.eda.visualization import CorrelationSignificanceVisualization, CorrelationVisualization, FeatureInteractionVisualization, PDPInteractions
  from autogluon.eda.visualization.interaction import FeatureDistanceAnalysisVisualization
label_desc: Use image node_id 16 for calling a global function with example usage: test_FeatureInteractionVisualization__fig_args(x_type, y_type, hue_type, swapped) without return types