code: def get_node_equation_number(
      writer: HTML5Translator, node: nodes.math_block
  ) -> str:
      if (
          writer.builder.config.math_numfig
          and writer.builder.config.numfig
      ):
          figtype = "displaymath"
          if writer.builder.name == "singlehtml":
              key = f"{writer.docnames[-1]}/{figtype}"  # type: ignore[has-type]
          else:
              key = figtype
  
          id = node["ids"][0]
          number = writer.builder.fignumbers.get(key, {}).get(id, ())
          return ".".join(map(str, number))
      else:
          return node["number"]
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
label_desc: Use image node_id 1 for calling a global function with example usage: get_node_equation_number(writer, node) and returns: str, node