code: def read_stats(self):
          
  
          self.statistics = TgnObjectsDict()
          for port in self.session.ports.values():
              self.statistics[port] = port.read_port_stats()
          return self.statistics
docs: Read current ports statistics from chassis.
  
          :return: dictionary {port name {group name, {stat name: stat value}}}