code: def test_valid_rmul():
      BTC = Instrument("BTC", 8, "Bitcoin")
  
      # int
      q = 8 * BTC
      assert isinstance(q, Quantity)
      assert q.size == 8
      assert q.instrument == BTC
  
      # float
      q = 8.0 * BTC
      assert isinstance(q, Quantity)
      assert q.size == 8.0
      assert q.instrument == BTC
  
file_path: tensortrade/tests/tensortrade/unit/oms/instruments/test_instrument.py
imports: import pytest
  from tensortrade.oms.instruments import Instrument, Quantity
  from tensortrade.core.exceptions import InvalidTradingPair
label_desc: Use image node_id 4 for calling a global function with example usage: test_valid_rmul() without return types