class_docstr: Writes the parameters of the model to a file and stdout.
    
code: def begin(self):
      # Dump to file on the chief worker
      if self.is_chief:
          opts = (
              tf.contrib.tfprof.model_analyzer.TRAINABLE_VARS_PARAMS_STAT_OPTIONS
          )
          opts["dump_to_file"] = os.path.abspath(self._filename)
          tf.contrib.tfprof.model_analyzer.print_model_analysis(
              tf.get_default_graph(), tfprof_options=opts
          )
  
      # Print the model analysis
      with gfile.GFile(self._filename) as file:
          tf.logging.info(file.read())
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import abc
  import os
  import numpy
  import six
  import yaml
  import tensorflow
  from tensorflow.python.training.basic_session_run_hooks import SecondOrStepTimer
  from tensorflow.python.training import session_manager
  from tensorflow.python.client import timeline
  from tensorflow import gfile
  from seq2seq.configurable import Configurable, abstractstaticmethod
  from seq2seq import graph_utils, global_vars
label_desc: Use image node_id 3 for calling the PrintModelAnalysisHook obj's underlying member method code with example usage: obj.begin() without return types