code: def NUMBER(s):
      try:
          return int(s)
      except ValueError:
          try:
              return float(s)
          except ValueError as e:
              raise ValueError(f"{s!r} is not a valid number") from e
  
imports: import contextlib
  import functools
  import json
  import os
  import re
  import click
  from click import shell_completion
  import guild
  from guild import python_util
label_desc: Use image node_id 1 for calling a global function with example usage: NUMBER(s) and returns: int, float