code: def random_sequence_from_string(string, seq_maxlen):
      rand_index = random.randint(0, len(string) - seq_maxlen - 1)
      return string[rand_index : rand_index + seq_maxlen]
  
imports: from __future__ import division, print_function, absolute_import
  import os
  import random
  import numpy
  from PIL import Image
  import pickle
  import csv
  import warnings
  import tensorflow.compat.v1
  from io import BytesIO
label_desc: Use image node_id 6 for calling a global function with example usage: random_sequence_from_string(string, seq_maxlen) and returns: string