code: def _fit(self, dataset):
      from ..training.tfgraphs import tf_graph, tf_graph_1x
  
      build_params = {}
  
      from sparknlp.internal import _NerDLGraphBuilder
  
      params_java = _NerDLGraphBuilder(
          dataset, self.getInputCols(), self.getLabelColumn()
      )._java_obj
      params = list(
          map(
              int,
              params_java.toString()
              .replace("(", "")
              .replace(")", "")
              .split(","),
          )
      )
      build_params["ntags"] = params[0]
      build_params["embeddings_dim"] = params[1]
      build_params["nchars"] = params[2]
      if self.getHiddenUnitsNumber() is not None:
          build_params["lstm_size"] = self.getHiddenUnitsNumber()
  
      graph_file = "auto"
      if self.getGraphFile() is not None:
          graph_file = self.getGraphFile()
  
      graph_folder = ""
      if self.getGraphFolder() is not None:
          graph_folder = self.getGraphFolder()
  
      print("Ner DL Graph Builder configuration:")
      print("Graph folder: {}".format(graph_folder))
      print("Graph file name: {}".format(graph_file))
      print("Build params: ", end="")
      print(build_params)
  
      try:
          tf_graph.build(
              "ner_dl",
              build_params=build_params,
              model_location=self.getGraphFolder(),
              model_filename=graph_file,
          )
      except Exception:
          print(
              "Can't build the tensorflow graph with TF 2 graph factory, attempting TF 1.15 factory"
          )
          try:
              tf_graph_1x.build(
                  "ner_dl",
                  build_params=build_params,
                  model_location=self.getGraphFolder(),
              )
          except Exception:
              raise Exception("The tensorflow graphs can't be build.")
  
      return TFNerDLGraphBuilderModel()
  
imports: from pyspark.ml import Model, Estimator
  from pyspark.ml.util import DefaultParamsWritable, DefaultParamsReadable
  from sparknlp.common import *
label_desc: Use image node_id 12 for calling the TFNerDLGraphBuilder obj's underlying member method code with example usage: obj._fit(dataset) and returns: TFNerDLGraphBuilderModel