code: def _fix_ipython_to_python_lf(ipython_s, python_s):
      if python_s[-1:] != "\n" and ipython_s[-1:] == "\n":
          return ipython_s[:-1]
      return ipython_s
  
imports: import ast
  import json
  import logging
  import os
  import re
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import plugin
  from guild import python_util
  from guild import util
  from .None import flags_import_util
label_desc: Use image node_id 17 for calling a global function with example usage: _fix_ipython_to_python_lf(ipython_s, python_s) and returns: ipython_s, ipython_s