code: def test_query_tighten_triplet_on(self):
      query_result = self.mplp.map_query(tighten_triplet=True)
      # Results from the Sontag code for a mplp run with tightening is:
      expected_result = {
          "var_0": 1,
          "var_1": 0,
          "var_2": 1,
          "var_3": 0,
          "var_4": 1,
          "var_5": 0,
          "var_6": 0,
          "var_7": 0,
          "var_8": 0,
          "var_9": 0,
          "var_10": 0,
          "var_11": 0,
          "var_12": 1,
          "var_13": 0,
          "var_14": 1,
          "var_15": 1,
      }
  
      self.assertEqual(query_result, expected_result)
  
      # The final Integrality gap after solving for the present case
      int_gap = self.mplp.get_integrality_gap()
      # Since the ties are broken arbitrary, we have 2 possible solutions howsoever trivial in difference
      self.assertIn(round(int_gap, 2), (7.98, 8.07))
  
file_path: pgmpy/pgmpy/tests/test_inference/test_mplp.py
imports: import unittest
  import numpy
  from pgmpy.inference.mplp import Mplp
  from pgmpy.readwrite import UAIReader
label_desc: Use image node_id 1 for calling the TightenTripletOn obj's underlying member method code with example usage: obj.test_query_tighten_triplet_on() without return types