code: def test_logger_deprecated(tmp_path):
      def build_model(hp):
          hp.Boolean("a")
  
      with pytest.deprecated_call(match="logger"):
          gridsearch.GridSearch(
              directory=tmp_path,
              hypermodel=build_model,
              max_trials=200,
              logger=1,
          )
  
imports: import os
  import pickle
  import time
  import numpy
  import pytest
  from sklearn import linear_model
  import keras_tuner
  from keras_tuner import errors
  from keras_tuner.distribute import oracle_client
  from keras_tuner.engine import base_tuner
  from keras_tuner.test_utils import mock_distribute
  from keras_tuner.tuners import gridsearch
  from keras_tuner.tuners import randomsearch
label_desc: Use image node_id 8 for calling a global function with example usage: test_logger_deprecated(tmp_path) without return types