code: def _update_data_chunk(updates: dict):
      chunk = BaseDataChunk(None)
  
      for key, value in updates.items():
          if key.startswith("T."):
              setattr(chunk.T, key[2:], value)
          else:
              setattr(chunk, key, value)
      return chunk
  
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 6 for calling a global function with example usage: _update_data_chunk(updates) and returns: chunk