code: def test_objective_not_equal_with_diff_dir():
      obj1 = objective.Objective(name="accuracy", direction="min")
      obj2 = objective.Objective(name="accuracy", direction="max")
      assert obj1 != obj2
  
imports: import pytest
  import keras_tuner
  from keras_tuner.engine import objective
label_desc: Use image node_id 12 for calling a global function with example usage: test_objective_not_equal_with_diff_dir() without return types