parameters: (string, max_len=50)
docstring: Limit the length of input string.
  
    Args:
      string: Input string.
      max_len: (int or None) If int, the length limit. If None, no limit.
  
    Returns:
      Possibly length-limited string.
docstring_summary: Limit the length of input string.
docstring_tokens: Limit the length of input string .
function: def limit_string_length(string, max_len=50):
    """Limit the length of input string.
  
    Args:
      string: Input string.
      max_len: (int or None) If int, the length limit. If None, no limit.
  
    Returns:
      Possibly length-limited string.
    """
    if max_len is None or len(string) <= max_len:
      return string
    else:
      return "..." + string[len(string) - max_len:]
function_tokens: def limit_string_length ( string , max_len = 50 ) : if max_len is None or len ( string ) <= max_len : return string else : return "..." + string [ len ( string ) - max_len : ]