code: def test_track_to_new_artifact_raises_exception(
      self, _extract_file_list
  ):
      # given
      swagger_mock = self._get_swagger_mock()
      _extract_file_list.return_value = [self.emptyDirectoryFile]
  
      # when
      with self.assertRaises(ArtifactUploadingError):
          track_to_new_artifact(
              swagger_client=swagger_mock,
              project_id=self.project_id,
              path=["sub", "one"],
              parent_identifier=self.parent_identifier,
              entries=[("/path/to/file", "/path/to")],
              default_request_params={},
              exclude_directory_files=True,
              exclude_metadata_from_hash=False,
          )
  
file_path: neptune-client/tests/unit/neptune/new/internal/backends/test_hosted_artifact_operations.py
imports: import unittest
  import uuid
  from mock import MagicMock, patch
  from neptune.exceptions import ArtifactUploadingError
  from neptune.internal.artifacts.types import ArtifactFileData
  from neptune.internal.backends.api_model import ArtifactModel
  from neptune.internal.backends.hosted_artifact_operations import track_to_existing_artifact, track_to_new_artifact
label_desc: Use image node_id 4 for calling the TestHostedArtifactOperations obj's underlying member method code with example usage: obj.test_track_to_new_artifact_raises_exception(_extract_file_list) without return types