code: def ipy_lines(block):
      if "source" in list(block.keys()):
          return block["source"]
      elif "input" in list(block.keys()):
          return block["input"]
      else:
          raise NotImplementedError(
              "ipython notebook source/line json format not handled"
          )
  
imports: import json
  import codecs
label_desc: Use image node_id 4 for calling a global function with example usage: ipy_lines(block) and returns: block, block