code: def instrument(self, pair: "TradingPair") -> "Instrument":
      return pair.base if self == TradeSide.BUY else pair.quote
  
imports: from enum import Enum
  from tensortrade.core import TimedIdentifiable
label_desc: Use image node_id 1 for calling the TradeSide obj's underlying member method code with example usage: obj.instrument(pair) and returns: unknown