class_docstr: ``ExperimentalCoreContext`` gives access to experimental functions in a Determined cluster.
class_docstr_tok: ["``","ExperimentalCoreContext","``","gives","access","to","experimental","functions","in","a","Determined","cluster","."]
docstr: Associate ``model_version`` with the current task. This links together the metrics
  reporting so that any metrics which are reported to the current task will be
  visible when querying for metrics associated with this model version
  
  Args:
      model_Version (model.ModelVersion): The model version to associate with this task
docstr_tok: ["Associate","``","model_version","``","with","the","current","task",".","This","links","together","the","metrics","reporting","so","that","any","metrics","which","are","reported","to","the","current","task","will","be","visible","when","querying","for","metrics","associated","with","this","model","version","Args",":","model_Version","(","model.ModelVersion",")",":","The","model","version","to","associate","with","this","task"]
code: def report_task_using_model_version(
      self, model_version: "model.ModelVersion"
  ) -> None:
      """
      Associate ``model_version`` with the current task. This links together the metrics
      reporting so that any metrics which are reported to the current task will be
      visible when querying for metrics associated with this model version
  
      Args:
          model_Version (model.ModelVersion): The model version to associate with this task
      """
      assert model_version.checkpoint
      req = bindings.v1ReportTrialSourceInfoRequest(
          trialSourceInfo=bindings.v1TrialSourceInfo(
              checkpointUuid=model_version.checkpoint.uuid,
              trialId=self._trial_id,
              trialSourceInfoType=bindings.v1TrialSourceInfoType.INFERENCE,
              modelId=model_version.model_id,
              modelVersion=model_version.model_version,
          )
      )
      bindings.post_ReportTrialSourceInfo(
          session=self._session,
          body=req,
      )
  
file_path: determined/harness/determined/core/_experimental.py
imports: from typing import TYPE_CHECKING
  from determined.common import api
  from determined.common.api import bindings
label_desc: Use image node_id 3 for calling the ExperimentalCoreContext obj's underlying member method code with example usage: obj.report_task_using_model_version(model_version) without return types