class_docstr: Test Trial object and class.
docstr: Check that two trials are equal based on id
docstr_tok: ["Check","that","two","trials","are","equal","based","on","id"]
code: def test_equal(self, trial_config):
      """Check that two trials are equal based on id"""
  
      trial_config["params"].append(
          {"name": "/max_epoch", "type": "fidelity", "value": "1"}
      )
      t1 = Trial(**trial_config)
  
      def change_attr(attrname, attrvalue):
          t2 = Trial(**trial_config)
          assert t1 == t2
          setattr(t2, attrname, attrvalue)
          return t2
  
      t2 = change_attr("parent", 0)
      assert t1 != t2
  
      params = copy.deepcopy(t1._params)
      params[-1].value = "2"
      t2 = change_attr("_params", params)
      assert t1 != t2
  
      t2 = change_attr("exp_working_dir", "whatever")
      assert t1 == t2
  
      t2 = change_attr("status", "broken")
      assert t1 == t2
  
imports: import copy
  import datetime
  import os
  import warnings
  import bson
  import numpy
  import pytest
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 29 for calling the TestTrial obj's underlying member method code with example usage: obj.test_equal(trial_config) and returns: t2