code: def do_query(self, args):
          
  
          if not self.current:
              print('There are no resources in use. Use the command "open".')
              return
  
          try:
              print('Response: {}'.format(self.current.query(args)))
          except Exception as e:
              print(e)
docs: Query resource in use: query *IDN?