code: def test_split_state() -> None:
      dataset = DATASET_NAME
      revision = REVISION_NAME
      config = CONFIG_NAME_1
      split = SPLIT_NAME_1
      expected_split_processing_step_name = "split-c"
      split_state = SplitState(
          dataset=dataset,
          revision=revision,
          config=config,
          split=split,
          processing_graph=PROCESSING_GRAPH,
          pending_jobs_df=Queue()._get_df(jobs=[]),
          cache_entries_df=get_cache_entries_df(dataset=dataset),
      )
  
      assert split_state.dataset == dataset
      assert split_state.revision == revision
      assert split_state.config == config
      assert split_state.split == split
  
      assert len(split_state.artifact_state_by_step) == 1
      assert (
          expected_split_processing_step_name
          in split_state.artifact_state_by_step
      )
      artifact_state = split_state.artifact_state_by_step[
          expected_split_processing_step_name
      ]
      assert (
          artifact_state.id
          == f"{expected_split_processing_step_name},{dataset},{revision},{config},{split}"
      )
      assert not artifact_state.cache_state.exists
      assert not artifact_state.cache_state.is_success
      assert not artifact_state.job_state.is_in_process
  
file_path: datasets-server/libs/libcommon/tests/test_state.py
imports: from http import HTTPStatus
  from typing import Optional
  import pytest
  from libcommon.queue import Queue
  from libcommon.resources import CacheMongoResource, QueueMongoResource
  from libcommon.simple_cache import delete_response, get_cache_entries_df, upsert_response
  from libcommon.state import ArtifactState, CacheState, ConfigState, DatasetState, SplitState
  from .utils import CACHE_KIND, CONFIG_NAME_1, CONFIG_NAMES, CONFIG_NAMES_CONTENT, DATASET_NAME, JOB_RUNNER_VERSION, PROCESSING_GRAPH, REVISION_NAME, SPLIT_NAME_1, SPLIT_NAMES, SPLIT_NAMES_CONTENT, STEP_CONFIG_B
label_desc: Use image node_id 6 for calling a global function with example usage: test_split_state() without return types