code: def test_expected_error_on_calling_depends_on(self):
      notebook_step = self._create_step_with_required_fields()
      with self.assertRaises(ValueError) as context:
          notebook_step.depends_on = []
  
      expected_error_message = (
          "Cannot set depends_on for a NotebookJobStep. Use "
          "add_depends_on instead to extend the list."
      )
      self.assertEqual(str(context.exception), expected_error_message)
  
imports: from __future__ import absolute_import
  import unittest
  from mock import Mock, patch
  from sagemaker.workflow.notebook_job_step import NotebookJobStep
  from sagemaker.workflow.functions import Join
label_desc: Use image node_id 14 for calling the TestNotebookJobStep obj's underlying member method code with example usage: obj.test_expected_error_on_calling_depends_on() without return types