code: def test_valid_rmul():
      # Quantity
      q1 = Quantity(ETH, 50)
      q2 = Quantity(ETH, 5)
      q = q2 * q1
      assert q.size == 250
      assert q.instrument == ETH
  
      # Quantity with Path ID
      q1 = Quantity(BTC, 50, path_id=path_id)
      q2 = Quantity(BTC, 5)
      q = q2 * q1
      assert q.size == 250
      assert q.instrument == BTC
      assert q.path_id == path_id
  
      # Quantity with matching Path ID
      q1 = Quantity(BTC, 50, path_id=path_id)
      q2 = Quantity(BTC, 5, path_id=path_id)
      q = q2 * q1
      assert q.size == 250
      assert q.instrument == BTC
      assert q.path_id == path_id
  
      # int
      q1 = Quantity(ETH, 50)
      q2 = 5
      q = q2 * q1
      assert q.size == 250
      assert q.instrument == ETH
  
      # float
      q1 = Quantity(ETH, 50)
      q2 = 5.0
      q = q2 * q1
      assert q.size == 250
      assert q.instrument == ETH
  
imports: import pytest
  import unittest.mock
  from tensortrade.oms.instruments import *
  from tensortrade.core.exceptions import *
label_desc: Use image node_id 13 for calling a global function with example usage: test_valid_rmul() without return types