code: def _check_delete_empty_cell(notebook, delete=True):
      with open(notebook, "r") as f:
          source = json.load(f)
      cell = source["cells"][-1]
      if cell["cell_type"] == "code" and cell["source"] == []:
          # this is an empty cell, which we should delete
          if delete:
              source["cells"] = source["cells"][:-1]
          else:
              return False
      if delete:
          with open(notebook, "w") as f:
              json.dump(source, f, ensure_ascii=False, indent=1)
      else:
          return True
  
file_path: featuretools/docs/notebook_version_standardizer.py
imports: import json
  import os
  import click
label_desc: Use image node_id 2 for calling a global function with example usage: _check_delete_empty_cell(notebook, delete) and returns: True, False