code: def _get_layer(layer_idx, nn, for_pres):
      """Returns a tuple representing the layer label."""
      if nn.layer_labels[layer_idx] in ["ip", "op"]:
          fill_colour = _IPOP_FILLCOLOR
      elif nn.layer_labels[layer_idx] in ["softmax", "linear"]:
          fill_colour = _DECISION_FILLCOLOR
      else:
          fill_colour = _FILLCOLOR
      label = nn.get_layer_descr(layer_idx, for_pres)
      return (
          str(layer_idx),
          {
              "label": label,
              "shape": "rectangle",
              "fillcolor": fill_colour,
              "style": "filled",
              "fontname": _LAYER_FONT,
          },
      )
  
file_path: dragonfly/dragonfly/nn/nn_visualise.py
imports: import functools
  import os
label_desc: Use image node_id 6 for calling a global function with example usage: _get_layer(layer_idx, nn, for_pres) and returns: str,  dict