code: def do_insert(model, node, layers):
      after, before = node[0], node[1]
      new_node = model.make_node(
          "Dense",
          "layer2",
          {"n_in": 1, "n_out": 1, "weight_data": w, "bias_data": b},
          [after],
      )
      if before is not None:
          before = [
              x for x in model.graph.values() if x.name == before
          ][0]
      model.insert_node(new_node, before=before)
      iInsert = np.argwhere(layers == after)[0][0] + 1
      layers = np.insert(layers, iInsert, "layer2")
      return model, layers
  
file_path: hls4ml/test/pytest/test_graph.py
imports: from pathlib import Path
  import numpy
  import pytest
  import tensorflow
  import hls4ml
label_desc: Use image node_id 4 for calling a global function with example usage: do_insert(model, node, layers) and returns: model,  layers