code: def test_do_something_invocation(point, division, null_chunk_fixture):
      """Test that calling :meth:`data.data_core.NullDataChunk._do_something` results in the invocation
      of the proper primary callback method as specified by `division` and `point`. Using
      `on_fold_end` as an example, this function ensures::
          `_do_something("fold", "end", ...)` call   ->   `on_fold_end(...)` call
      """
      method_to_mock = f"on_{division}_{point}"
      mock_method_path = f"hyperparameter_hunter.data.data_core.NullDataChunk.{method_to_mock}"
  
      with mock.patch(mock_method_path) as mock_primary_callback:
          null_chunk_fixture._do_something(
              division, point, "An arg", k="A kwarg"
          )
          mock_primary_callback.assert_called_once_with(
              "An arg", k="A kwarg"
          )
  
file_path: hyperparameter_hunter/tests/test_data/test_data_core.py
imports: from hyperparameter_hunter.data.data_core import BaseDataChunk, BaseDataset, NullDataChunk
  import pandas
  import pytest
  from unittest import mock
label_desc: Use image node_id 4 for calling a global function with example usage: test_do_something_invocation(point, division, null_chunk_fixture) without return types