code: def get_profiled_instructions_proto(tensorboard_dir: str) -> bytes:
      """Gets the serialized profiled instructions proto from profile.
  
      Restore the xplane from the tensorboard dir and convert it to profiled
      [ProfiledInstructionsProto](https://github.com/openxla/xla/blob/main/third_party/tsl/tsl/profiler/protobuf/profiled_instructions.proto).
      The result is non-empty only when running on Nvidia GPU.
  
      Args:
        tensorboard_dir: The directory contains the profile trace, it is in the
          format of `<tb's log_dir>/plugin/profile/<run_dir>/`.
  
      Returns:
        Serialized
        [ProfiledInstructionsProto](https://github.com/openxla/xla/blob/main/third_party/tsl/tsl/profiler/protobuf/profiled_instructions.proto).
      """
      return xla_client.profiler.get_profiled_instructions_proto(
          tensorboard_dir
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_profiled_instructions_proto(tensorboard_dir) and returns: xla_client