code: def plot_dendrogram(linkage_matrix, labels=None):
      fig = create_dendrogram(
          linkage_matrix,
          labels=labels,
          distfun=lambda x: x,
          linkagefun=lambda x: x,
          orientation="left",
          color_threshold=-0.1,
          colorscale=["#46bac2"],
      )
      if labels is None:
          fig.update_yaxes(visible=False, showticklabels=False)
  
      fig.update_xaxes(
          range=[-0.05, 1.05], visible=False, showticklabels=False
      )
  
      fig.update_layout(
          xaxis={
              "mirror": False,
              "showgrid": False,
              "showline": False,
              "zeroline": False,
              "ticks": "",
              "fixedrange": True,
          },
          yaxis={
              "mirror": False,
              "showgrid": False,
              "showline": False,
              "zeroline": False,
              "ticks": "",
              "fixedrange": True,
          },
          font={"color": "#371ea3"},
          template="none",
          margin={"t": 78, "b": 71, "r": 30},
      )
  
      return fig
  
imports: import numpy
  from plotly.figure_factory import create_dendrogram
  import plotly.graph_objects
label_desc: Use image node_id 1 for calling a global function with example usage: plot_dendrogram(linkage_matrix, labels) and returns: fig