code: def remove_import_statements(code):
      
      new_code = []
      for line in code.splitlines():
          if not line.lstrip().startswith('import ') and \
             not line.lstrip().startswith('from '):
              new_code.append(line)
  
      while new_code and new_code[0] == '':
          new_code.pop(0)
      while new_code and new_code[-1] == '':
          new_code.pop()
  
      return '\n'.join(new_code)
docs: Removes lines with import statements from the code.
  
      Args:
          code: The code to be stripped.
  
      Returns:
          The code without import statements.