code: def mock_version():
      responses.add(
          responses.GET,
          "http://localhost:8080/api/v1/nni/version",
          json={"value": 1.8},
          status=200,
      )
  
file_path: nni/test/ut/tools/nnictl/mock/restful_server.py
imports: import responses
label_desc: Use image node_id 2 for calling a global function with example usage: mock_version() without return types