docstr: Tests is file returns True when path exists and is a file
docstr_tok: ["Tests","is","file","returns","True","when","path","exists","and","is","a","file"]
code: def test_is_file_is_file(self, mock_exists, mock_isfile):
      """
      Tests is file returns True when path exists and is a file
      """
      mock_exists.return_value = True
      mock_isfile.return_value = True
      self.assertTrue(is_file("some/path"))
  
imports: import unittest
  from unittest.mock import MagicMock, mock_open, patch
  from artifact_repository import *
label_desc: Use image node_id 34 for calling the TestArtifactRepositoryTool obj's underlying member method code with example usage: obj.test_is_file_is_file(mock_exists, mock_isfile) without return types