code: def check_response(response):
      """Check if a response is success according to status_code"""
      if response and response.status_code == 200:
          return True
      return False
  
file_path: nni/nni/tools/nnictl/rest_utils.py
imports: import time
  import requests
  from .url_utils import check_status_url
  from .constants import REST_TIME_OUT
  from .common_utils import print_error
label_desc: Use image node_id 7 for calling a global function with example usage: check_response(response) and returns: False, True