code: def close(self, session):
          
          try:
              sess = self.sessions[session]
              if sess is not self:
                  sess.close()
          except KeyError:
              return StatusCode.error_invalid_object
docs: Closes the specified session, event, or find list.
  
          Corresponds to viClose function of the VISA library.
  
          :param session: Unique logical identifier to a session, event, or find list.
          :return: return value of the library call.
          :rtype: VISAStatus