code: def tradingSessions(self) -> List[TradingSession]:
      return self._parseSessions(self.tradingHours)
  
imports: import datetime
  from dataclasses import dataclass, field
  from typing import List, NamedTuple, Optional
  import ib_insync.util
label_desc: Use image node_id 1 for calling the ContractDetails obj's underlying member method code with example usage: obj.tradingSessions() and returns: self