code: def test_from_tuple():
      wallet_tuple = (exchange, USD, 10000)
  
      wallet = Wallet.from_tuple(wallet_tuple)
  
      assert wallet.balance == 10000 * USD
      assert wallet.exchange == exchange
      assert wallet.instrument == USD
      assert len(wallet.locked) == 0
  
file_path: tensortrade/tests/tensortrade/unit/oms/wallets/test_wallet.py
imports: import pytest
  import unittest.mock
  from decimal import Decimal
  from tensortrade.core.exceptions import InsufficientFunds, IncompatibleInstrumentOperation
  from tensortrade.oms.exchanges import Exchange
  from tensortrade.oms.wallets import Wallet
  from tensortrade.oms.instruments import USD, BTC, Quantity, ExchangePair
label_desc: Use image node_id 2 for calling a global function with example usage: test_from_tuple() without return types