input: Write a function called eliminate_redundancies that takes a Python function as input and returns a version of the function without any redundant lines. The function should combine any print statements that are separated only by a newline.
  assert eliminate_redundancies(just_me)==def just_me(name):
      print("Hi, my name is "+name+". I am special and nothing else matters.")
      print("What about you?")
  assert eliminate_redundancies(just_me_copy)==def just_me_copy(name):
      print("Hi, my name is "+name+".")
      print("I am special and nothing else matters.")
      print("What about you?")
  assert eliminate_redundancies(empty_function)==def empty_function():
      pass
output: def eliminate_redundancies(func):
      import inspect
      source = inspect.getsource(func)
      lines = source.split('\n')
      new_lines = []
      for line in lines:
          if line.strip().startswith('print'):
              if new_lines and new_lines[-1].strip().startswith('print'):
                  new_lines[-1] += ' ' + line.strip().split('print')[1].strip()
              else:
                  new_lines.append(line)
          else:
              new_lines.append(line)
      return '\n'.join(new_lines)