def METHOD_NAME(self) -> None:
    err = IOError('XYZ error.')
    print_swap = self.swap_with_checks(
        builtins, 'print', lambda _: None,
        expected_args=((err,),))
    def mock_open_file(*unused_args: str) -> None:
        raise err
    swap_open = self.swap_with_checks(
        utils, 'open_file', mock_open_file,
        expected_args=(('.gcloudignore', 'r'),))
    swap_sys_exit = self.swap_with_checks(
        sys, 'exit', lambda _: None, expected_args=((1,),))
    with swap_open, swap_sys_exit, print_swap:
        third_party_size_check.get_skip_files_list()