code: def configure_autotune(
      hparams_range,
      objective,
      maximize=True,
      max_trials=10,
      parallel_trials=1,
  ):
      return {
          "goal": "MAXIMIZE" if maximize else "MINIMIZE",
          "params": autotune_paramspecs(hparams_range),
          "maxTrials": max_trials,
          "maxParallelTrials": parallel_trials,
          "hyperparameterMetricTag": objective,
      }
  
imports: import datetime
  import os
  import pprint
  import shutil
  import subprocess
  import sys
  import tempfile
  from googleapiclient import discovery
  from oauth2client.client import GoogleCredentials
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.layers import common_hparams
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import usr_dir
  import tensorflow.compat.v1
label_desc: Use image node_id 17 for calling a global function with example usage: configure_autotune(hparams_range, objective, maximize, max_trials, parallel_trials) and returns: dict