code: def sample_code_chunk(code, size):
      assert size > 0 and size <= len(code)
      start = np.random.randint(len(code) - size + 1)
      end = start + size
      return code[start:end], start, end
  
file_path: fairseq/examples/textless_nlp/gslm/unit2speech/tacotron2/text.py
imports: import numpy
  import re
  from .None import cleaners
  from .symbols import symbols
label_desc: Use image node_id 2 for calling a global function with example usage: sample_code_chunk(code, size) and returns: code,  start,  end