code: def test_valid_unequals():
      # Quantity
      q1 = Quantity(ETH, 5)
      q2 = Quantity(ETH, 5)
      assert not (q1 != q2) and not (q2 != q1)
  
      q1 = Quantity(ETH, 50)
      q2 = Quantity(ETH, 5)
      assert (q1 != q2) and (q2 != q1)
  
      # int
      q1 = Quantity(ETH, 5)
      q2 = 5
      assert not (q1 != q2) and not (q2 != q1)
  
      q1 = Quantity(ETH, 50)
      q2 = 5
      assert (q1 != q2) and (q2 != q1)
  
      # float
      q1 = Quantity(ETH, 5)
      q2 = 5.0
      assert not (q1 != q2) and not (q2 != q1)
  
      q1 = Quantity(ETH, 50)
      q2 = 5.0
      assert (q1 != q2) and (q2 != q1)
  
imports: import pytest
  import unittest.mock
  from tensortrade.oms.instruments import *
  from tensortrade.core.exceptions import *
label_desc: Use image node_id 21 for calling a global function with example usage: test_valid_unequals() without return types