async function createHyperParameterTuningJob() {
    // Configure the parent resource
    const parent = `projects/${project}/locations/${location}`;

    // Create the hyperparameter tuning job configuration
    const hyperparameterTuningJob = {
      displayName,
      maxTrialCount: 2,
      parallelTrialCount: 1,
      maxFailedTrialCount: 1,
      studySpec: {
        metrics: [
          {
            metricId: 'accuracy',
            goal: 'MAXIMIZE',
          },
        ],
        parameters: [
          {
            parameterId: 'lr',
            doubleValueSpec: {
              minValue: 0.001,
              maxValue: 0.1,
            },
          },
        ],
      },
      trialJobSpec: {
        workerPoolSpecs: [
          {
            machineSpec: {
              machineType: 'n1-standard-4',
              acceleratorType: 'NVIDIA_TESLA_T4',
              acceleratorCount: 1,
            },
            replicaCount: 1,
            containerSpec: {
              imageUri: containerImageUri,
              command: [],
              args: [],
            },
          },
        ],
      },
    };

    const [response] = await jobServiceClient.createHyperparameterTuningJob({
      parent,
      hyperparameterTuningJob,
    });

    console.log('Create hyperparameter tuning job response:');
    console.log(`\tDisplay name: ${response.displayName}`);
    console.log(`\tTuning job resource name: ${response.name}`);
    console.log(`\tJob status: ${response.state}`);
  }
TODO(developer): Uncomment these variables before running the sample.
(Not necessary if passing values as arguments)