class_docstr: Tests to check primarily that saving a BO model results in a file without errors.
code: def setUp(self):
      self.f_1d = lambda x: (6 * x - 2) ** 2 * np.sin(12 * x - 4)
      self.f_2d = lambda x: (6 * x[:, 0] - 2) ** 2 * np.sin(
          12 * x[:, 1] - 4
      )
      self.domain_1d = [
          {
              "name": "var_1",
              "type": "continuous",
              "domain": (0, 1),
              "dimensionality": 1,
          }
      ]
      self.domain_2d = [
          {"name": "var_1", "type": "continuous", "domain": (0, 1)},
          {"name": "var_2", "type": "continuous", "domain": (0, 1)},
      ]
  
      self.outfile_path = tempfile.mkstemp()[1]
      # Need to delete the file afterwards - no matter what
      self.addCleanup(os.remove, self.outfile_path)
  
file_path: GPyOpt/GPyOpt/testing/core_tests/test_save.py
imports: import unittest
  import numpy
  from GPyOpt.methods import BayesianOptimization
  from GPyOpt.models import GPModel
  import GPy
  import tempfile
  import os
label_desc: Use image node_id 1 for calling the TestSaveModel obj's underlying member method code with example usage: obj.setUp() without return types