code: def test_value_difference_value_unfitted(data):
      # Check that we raise a NotFittedError when `fit` is not not called before
      # pairwise.
      X, y = data
  
      encoder = OrdinalEncoder(dtype=np.int32)
      X_encoded = encoder.fit_transform(X)
  
      with pytest.raises(NotFittedError):
          ValueDifferenceMetric().pairwise(X_encoded)
  
file_path: imbalanced-learn/imblearn/metrics/tests/test_pairwise.py
imports: import numpy
  import pytest
  from sklearn.exceptions import NotFittedError
  from sklearn.preprocessing import LabelEncoder, OrdinalEncoder
  from sklearn.utils._testing import _convert_container
  from imblearn.metrics.pairwise import ValueDifferenceMetric
label_desc: Use image node_id 7 for calling a global function with example usage: test_value_difference_value_unfitted(data) without return types