code: def test_init_from_wallet_tuples(exchange):
      portfolio = Portfolio(
          USD, wallets=[(exchange, USD, 10000), (exchange, BTC, 0)]
      )
  
      assert portfolio.base_instrument == USD
      assert portfolio.base_balance == 10000 * USD
      assert portfolio.initial_balance == 10000 * USD
      assert len(portfolio.wallets) == 2
  
imports: import pytest
  import unittest.mock
  from tensortrade.core.base import Clock
  from tensortrade.oms.wallets import Wallet, Portfolio
  from tensortrade.oms.instruments import USD, BTC, ETH, XRP, BCH
label_desc: Use image node_id 10 for calling a global function with example usage: test_init_from_wallet_tuples(exchange) without return types