class_docstr: TFT Model
docstr: Tensorflow model can't be dumped directly.
  So the data should be save separately
  
  **TODO**: Please implement the function to load the files
  
  Parameters
  ----------
  path : Union[Path, str]
      the target path to be dumped
docstr_tok: ["Tensorflow","model","ca","n't","be","dumped","directly",".","So","the","data","should","be","save","separately","*","*","TODO","*","*",":","Please","implement","the","function","to","load","the","files","Parameters","--","--","--","--","--","path",":","Union","[","Path",",","str","]","the","target","path","to","be","dumped"]
code: def to_pickle(self, path: Union[Path, str]):
      """
      Tensorflow model can't be dumped directly.
      So the data should be save separately
  
      **TODO**: Please implement the function to load the files
  
      Parameters
      ----------
      path : Union[Path, str]
          the target path to be dumped
      """
      # FIXME: implementing saving tensorflow models
      # save tensorflow model
      # path = Path(path)
      # path.mkdir(parents=True)
      # self.model.save(path)
  
      # save qlib model wrapper
      drop_attrs = ["model", "tf_graph", "sess", "data_formatter"]
      orig_attr = {}
      for attr in drop_attrs:
          orig_attr[attr] = getattr(self, attr)
          setattr(self, attr, None)
      super(TFTModel, self).to_pickle(path)
      for attr in drop_attrs:
          setattr(self, attr, orig_attr[attr])
  
imports: from pathlib import Path
  from typing import Union
  import numpy
  import pandas
  import tensorflow.compat.v1
  import data_formatters.base
  import expt_settings.configs
  import libs.hyperparam_opt
  import libs.tft_model
  import libs.utils
  import os
  import datetime
  from qlib.model.base import ModelFT
  from qlib.data.dataset import DatasetH
  from qlib.data.dataset.handler import DataHandlerLP
label_desc: Use image node_id 6 for calling the TFTModel obj's underlying member method code with example usage: obj.to_pickle(path) without return types