code: def pval_format(v: float) -> str:
      """Preferred formatting for x in [0,1]"""
      if np.isnan(v):
          return "        "
      return f"{v:4.4f}"
  
imports: from __future__ import annotations
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: pval_format(v) and returns: v, str