code: def test_default_labels(
      pyplot, average_precision, estimator_name, expected_label
  ):
      """Check the default labels used in the display."""
      precision = np.array([1, 0.5, 0])
      recall = np.array([0, 0.5, 1])
      display = PrecisionRecallDisplay(
          precision,
          recall,
          average_precision=average_precision,
          estimator_name=estimator_name,
      )
      display.plot()
      assert display.line_.get_label() == expected_label
  
imports: from collections import Counter
  import numpy
  import pytest
  from sklearn.compose import make_column_transformer
  from sklearn.datasets import load_breast_cancer, make_classification
  from sklearn.exceptions import NotFittedError
  from sklearn.linear_model import LogisticRegression
  from sklearn.metrics import PrecisionRecallDisplay, average_precision_score, precision_recall_curve
  from sklearn.model_selection import train_test_split
  from sklearn.pipeline import make_pipeline
  from sklearn.preprocessing import StandardScaler
  from sklearn.utils import shuffle
  from sklearn.utils.fixes import trapezoid
label_desc: Use image node_id 6 for calling a global function with example usage: test_default_labels(pyplot, average_precision, estimator_name, expected_label) without return types