code: def test_numeric_re():
      """
      Test the "is numeric" function
  
      This function is entirely based on an RE in data.py
      """
      # the last one is Thai
      matches = [
          "57",
          "135245345",
          "12535.",
          "852358.458345",
          "435345...345345",
          "111,,,111,,,111,,,111",
          "5318008",
          "５",
          "๕",
      ]
  
      # note that we might want to consider .4 a numeric token after all
      # however, changing that means retraining all the models
      # the really long one only works if NUMERIC_RE avoids catastrophic backtracking
      not_matches = [
          ".4",
          "54353a",
          "5453 35345",
          "aaa143234",
          "a,a,a,a",
          "sh'reyan",
          "asdaf786876asdfasdf",
          "",
          "11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111a",
      ]
  
      for x in matches:
          assert NUMERIC_RE.match(x) is not None
      for x in not_matches:
          assert NUMERIC_RE.match(x) is None
  
file_path: stanza/stanza/tests/tokenization/test_tokenize_data.py
imports: import pytest
  import tempfile
  import numpy
  import stanza
  from stanza import Pipeline
  from stanza.tests import *
  from stanza.models.tokenization.data import DataLoader, NUMERIC_RE
label_desc: Use image node_id 10 for calling a global function with example usage: test_numeric_re() without return types