def METHOD_NAME(self):
    builder = InvocationCountingDummyImageBuilder()
    from kfp.deprecated.containers._cache import clear_cache
    clear_cache('build_image_from_working_dir')
    self.assertEqual(builder.invocations_count, 0)
    with prepare_context_dir(
            py_content='py1', sh_content='sh1') as context_dir:
        build_image_from_working_dir(
            working_dir=context_dir,
            base_image='python:3.6.5',
            builder=builder)
    self.assertEqual(builder.invocations_count, 1)
    # Check that changes to .sh files do not break cache
    with prepare_context_dir(
            py_content='py1', sh_content='sh2') as context_dir:
        build_image_from_working_dir(
            working_dir=context_dir,
            base_image='python:3.6.5',
            builder=builder)
    self.assertEqual(builder.invocations_count, 1)
    # Check that changes to .py files result in new image being built
    with prepare_context_dir(
            py_content='py2', sh_content='sh1') as context_dir:
        build_image_from_working_dir(
            working_dir=context_dir,
            base_image='python:3.6.5',
            builder=builder)
    self.assertEqual(builder.invocations_count, 2)