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","."]
code: def upload_tb_files(self) -> None:
      self.context._core.train.upload_tensorboard_files(
          (lambda _: True)
          if self.is_chief
          else (lambda p: not p.match("*tfevents*")),
          tensorboard.util.get_rank_aware_path,
      )
  
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 7 for calling the TrialController obj's underlying member method code with example usage: obj.upload_tb_files() without return types