code: def backend_status(self, backend='ibmqx4', access_token=None, user_id=None):
          
          if access_token:
              self.req.credential.set_token(access_token)
          if user_id:
              self.req.credential.set_user_id(user_id)
          backend_type = self._check_backend(backend, 'status')
          if not backend_type:
              raise BadBackendError(backend)
  
          status = self.req.get('/Backends/' + backend_type + '/queue/status',
                                with_token=False)
  
          ret = {}
          if 'state' in status:
              ret['available'] = bool(status['state'])
          if 'busy' in status:
              ret['busy'] = bool(status['busy'])
          if 'lengthQueue' in status:
              ret['pending_jobs'] = status['lengthQueue']
          
          ret['backend'] = backend_type
  
          return ret
docs: Get the status of a chip