code: def portfolio(
      wallet_usd, wallet_btc, wallet_eth, wallet_xrp, exchange
  ):
      portfolio = Portfolio(
          USD, wallets=[wallet_usd, wallet_btc, wallet_eth, wallet_xrp]
      )
  
      with mock.patch.object(
          Portfolio, "clock", return_value=exchange.clock
      ) as clock:
          portfolio = Portfolio(
              USD,
              wallets=[wallet_usd, wallet_btc, wallet_eth, wallet_xrp],
          )
  
      return portfolio
  
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 6 for calling a global function with example usage: portfolio(wallet_usd, wallet_btc, wallet_eth, wallet_xrp, exchange) and returns: portfolio