code: def test_make_output_dirs_if_needed_overwrite_with_warning(
      os_path_exists, caplog
  ):
      output_file = "output.py"
  
      updater = files.FileUpdater("input.py", output_file)
      updater._make_output_dirs_if_needed()
  
      assert "Overwriting file {}".format(output_file) in caplog.text
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/cli/compatibility/v2/test_file_updaters.py
imports: from __future__ import absolute_import
  import json
  import os
  from mock import call, Mock, mock_open, patch
  from sagemaker.cli.compatibility.v2 import files
label_desc: Use image node_id 3 for calling a global function with example usage: test_make_output_dirs_if_needed_overwrite_with_warning(os_path_exists, caplog) without return types