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: Certain things must be initialized before either running user code (in the Native API case)
  or initializing user code (in the Trial API case).
docstr_tok: ["Certain","things","must","be","initialized","before","either","running","user","code","(","in","the","Native","API","case",")","or","initializing","user","code","(","in","the","Trial","API","case",")","."]
code: def pre_execute_hook(
      cls: Type["TrialController"],
      env: det.EnvContext,
      distributed_backend: _DistributedBackend,
  ) -> Any:
      """
      Certain things must be initialized before either running user code (in the Native API case)
      or initializing user code (in the Trial API case).
      """
      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 2 for calling the TrialController obj's underlying member method code with example usage: obj.pre_execute_hook(cls, env, distributed_backend) without return types