code: def fix_get_mnist_subset(get_mnist_dataset):
      (x_train_mnist, y_train_mnist), (
          x_test_mnist,
          y_test_mnist,
      ) = get_mnist_dataset
      n_train = 100
      n_test = 11
      yield x_train_mnist[:n_train], y_train_mnist[
          :n_train
      ], x_test_mnist[:n_test], y_test_mnist[:n_test]
  
file_path: adversarial-robustness-toolbox/tests/attacks/evasion/test_dpatch.py
imports: import logging
  import numpy
  import pytest
  from art.attacks.evasion import DPatch
  from art.estimators.estimator import BaseEstimator, LossGradientsMixin
  from art.estimators.object_detection.object_detector import ObjectDetectorMixin
  from tests.attacks.utils import backend_test_classifier_type_check_fail
  from tests.utils import master_seed
  from tests.utils import ARTTestException
label_desc: Use image node_id 1 for calling a global function with example usage: fix_get_mnist_subset(get_mnist_dataset) without return types