code: def test_ifnotnone():
      assert ifnotnone(1, lambda o: o + 1) == 2
      assert ifnotnone(None, lambda o: o + 1) == None
  
file_path: icevision/tests/utils/test_utils.py
imports: from icevision.all import *
  from icevision.core.record_components import LossesRecordComponent
label_desc: Use image node_id 2 for calling a global function with example usage: test_ifnotnone() without return types