def METHOD_NAME(hdfs_system_mock):
    repo = HdfsArtifactRepository("viewfs://host_name/mypath")
    with TempDir() as tmp_dir:
        local_file = tmp_dir.path("sample_file")
        with open(local_file, "w") as f:
            f.write("PyArrow Works")
        repo.log_artifact(local_file, "more_path/some")
        hdfs_system_mock.assert_called_once_with(
            extra_conf=None, host="viewfs://host_name", kerb_ticket=None, port=0, user=None
        )
        upload_mock = hdfs_system_mock.return_value.upload
        upload_mock.assert_called_once_with("/mypath/more_path/some/sample_file", ANY)
        args, _ = upload_mock.call_args
        assert isinstance(args[1], BufferedReader)