class_docstr: A uniform random slippage model.
  
  Parameters
  ----------
  max_slippage_percent : float, default 3.0
      The maximum random slippage to be applied to the fill price.
code: def adjust_trade(self, trade: "Trade", **kwargs) -> "Trade":
      price_slippage = np.random.uniform(
          0, self.max_slippage_percent / 100
      )
  
      initial_price = trade.price
  
      if trade.type == TradeType.MARKET:
          if trade.side == TradeSide.BUY:
              trade.price = max(
                  initial_price * (1 + price_slippage), 1e-3
              )
          else:
              trade.price = max(
                  initial_price * (1 - price_slippage), 1e-3
              )
      else:
          if trade.side == TradeSide.BUY:
              trade.price = max(
                  initial_price * (1 + price_slippage), 1e-3
              )
  
              if trade.price > initial_price:
                  trade.size *= min(initial_price / trade.price, 1)
          else:
              trade.price = max(
                  initial_price * (1 - price_slippage), 1e-3
              )
  
              if trade.price < initial_price:
                  trade.size *= min(trade.price / initial_price, 1)
  
      return trade
  
imports: import numpy
  from tensortrade.oms.services.slippage.slippage_model import SlippageModel
  from tensortrade.oms.orders import Trade, TradeType, TradeSide
label_desc: Use image node_id 2 for calling the RandomUniformSlippageModel obj's underlying member method code with example usage: obj.adjust_trade(trade) and returns: trade