code: def sort_key(ex):
      return len(ex.text)
  
file_path: pytext/pytext/legacy/datasets/imdb.py
imports: import glob
  import io
  import os
  from ..None import data
label_desc: Use image node_id 1 for calling the IMDB obj's underlying member method code with example usage: obj.sort_key(ex) and returns: len