parameters: (self, flow_graph, file_path)
docstring: Initialize the hier block generator object.
  
          Args:
              flow_graph: the flow graph object
              file_path: where to write the py file (the yml goes into HIER_BLOCK_LIB_DIR)
docstring_summary: Initialize the hier block generator object.
docstring_tokens: Initialize the hier block generator object .
function: def __init__(self, flow_graph, file_path):
          """
          Initialize the hier block generator object.
  
          Args:
              flow_graph: the flow graph object
              file_path: where to write the py file (the yml goes into HIER_BLOCK_LIB_DIR)
          """
          CppTopBlockGenerator.__init__(self, flow_graph, file_path)
          platform = flow_graph.parent
  
          hier_block_lib_dir = platform.config.hier_block_lib_dir
          if not os.path.exists(hier_block_lib_dir):
              os.mkdir(hier_block_lib_dir)
  
          self._mode = Constants.HIER_BLOCK_FILE_MODE
          self.file_path = os.path.join(
              hier_block_lib_dir, self._flow_graph.get_option('id'))
          self.file_path_yml = self.file_path + '.block.yml'
function_tokens: def __init__ ( self , flow_graph , file_path ) : CppTopBlockGenerator . __init__ ( self , flow_graph , file_path ) platform = flow_graph . parent hier_block_lib_dir = platform . config . hier_block_lib_dir if not os . path . exists ( hier_block_lib_dir ) : os . mkdir ( hier_block_lib_dir ) self . _mode = Constants . HIER_BLOCK_FILE_MODE self . file_path = os . path . join ( hier_block_lib_dir , self . _flow_graph . get_option ( 'id' ) ) self . file_path_yml = self . file_path + '.block.yml'