code: def test_avg_num_tokens(field, expected):
      assert avg_num_tokens(field) == expected
  
imports: import pandas
  import pytest
  from ludwig.utils.automl.utils import avg_num_tokens
label_desc: Use image node_id 1 for calling a global function with example usage: test_avg_num_tokens(field, expected) without return types