code: def cut_string(input_str: str, cut_length: int = 200) -> str:
      """Cut a string to 200 characters, but cut only at whitespaces."""
      if len(input_str) > cut_length:
          index = input_str.find(" ", cut_length)
          if index != -1:
              return input_str[:index]
      return input_str
  
file_path: deepchecks/deepchecks/nlp/utils/text.py
imports: import re
  import string
  import typing
  import unicodedata
  import warnings
  import nltk
  from nltk.corpus import stopwords
  from nltk.tokenize import word_tokenize
label_desc: Use image node_id 6 for calling a global function with example usage: cut_string(input_str, cut_length) and returns: input_str, input_str