class_docstr: TrialController is the legacy class that represented the Determined-owned logic to interact with
  a user-owned Trial class.
class_docstr_tok: ["TrialController","is","the","legacy","class","that","represented","the","Determined-owned","logic","to","interact","with","a","user-owned","Trial","class","."]
docstr: Create a TrialController from an instantiated framework-matched Trial.
docstr_tok: ["Create","a","TrialController","from","an","instantiated","framework-matched","Trial","."]
code: def from_trial(
      cls: Type["TrialController"],
      trial_inst: "det.LegacyTrial",
      context: det.TrialContext,
      env: det.EnvContext,
      workloads: Optional[workload.Stream] = None,
  ) -> "TrialController":
      """
      Create a TrialController from an instantiated framework-matched Trial.
      """
      pass
  
file_path: determined/harness/determined/_trial_controller.py
imports: import abc
  import logging
  import os
  from typing import Any, Optional, Type
  import determined
  from determined import profiler, tensorboard, workload
label_desc: Use image node_id 3 for calling the TrialController obj's underlying member method code with example usage: obj.from_trial(cls, trial_inst, context, env, workloads) without return types