code: def check_if_cached(self, job_spec, step, workflow_workspace):
          
          response, http_response = self._client.job_cache.check_if_cached(
              job_spec=json.dumps(job_spec),
              workflow_json=json.dumps(step),
              workflow_workspace=workflow_workspace).\
              result()
          if http_response.status_code == 400:
              raise HTTPBadRequest('Bad request to check cache. Error: {}'.
                                   format(http_response.data))
          elif http_response.status_code == 500:
              raise HTTPInternalServerError('Internal Server Error. Error: {}'.
                                            format(http_response.data))
          return http_response
docs: Check if job result is in cache.