code: def _remove_extra_whitespace_from_line(line):
      line = line.lstrip()
      line = line.rstrip()
      return line
  
imports: import copy
  import random
  import re
  import string
  import warnings
  import _plotly_utils.exceptions
  from chart_studio import exceptions
  from chart_studio.config import get_config
label_desc: Use image node_id 7 for calling a global function with example usage: _remove_extra_whitespace_from_line(line) and returns: line