code: def _array_safe_dict_eq(one_dict, other_dict):
          
          for key in one_dict:
              try:
                  assert one_dict[key] == other_dict[key]
              except ValueError as err:
                  # When dealing with arrays, we need to use numpy for comparison
                  if isinstance(one_dict[key], dict):
                      assert FitResults._array_safe_dict_eq(one_dict[key], other_dict[key])
                  else:
                      assert np.allclose(one_dict[key], other_dict[key])
              except AssertionError:
                  return False
          else: return True
docs: Dicts containing arrays are hard to compare. This function uses
          numpy.allclose to compare arrays, and does normal comparison for all
          other types.
  
          :param one_dict:
          :param other_dict:
          :return: bool