code: def test_eq_ne_hash() -> None:
      # Two instances of a class are regarded as equivalent if the fields have the same values.
      for d in EXAMPLE_DISTRIBUTIONS.values():
          d_copy = copy.deepcopy(d)
          assert d == d_copy
          assert hash(d) == hash(d_copy)
  
      # Different field values.
      d0 = distributions.FloatDistribution(low=1, high=2)
      d1 = distributions.FloatDistribution(low=1, high=3)
      assert d0 != d1
  
      # Different distribution classes.
      d2 = distributions.IntDistribution(low=1, high=2)
      assert d0 != d2
  
imports: import copy
  import json
  from typing import Any
  from typing import cast
  from typing import Dict
  from typing import Optional
  import warnings
  import numpy
  import pytest
  from optuna import distributions
label_desc: Use image node_id 18 for calling a global function with example usage: test_eq_ne_hash() without return types