code: def first_split_endpoint(
      endpoint_definition: StepsByInputTypeAndEndpoint,
  ) -> str:
      return next(
          endpoint
          for endpoint, input_types in endpoint_definition.items()
          if next(
              (
                  endpoint
                  for input_type, _ in input_types.items()
                  if input_type == "split"
              ),
              None,
          )
      )
  
imports: from collections.abc import Iterator
  import pytest
  from libapi.config import UvicornConfig
  from libcommon.processing_graph import processing_graph
  from libcommon.queue import _clean_queue_database
  from libcommon.resources import CacheMongoResource, QueueMongoResource
  from libcommon.simple_cache import _clean_cache_database
  from pytest import MonkeyPatch, fixture
  from api.config import AppConfig, EndpointConfig
  from api.routes.endpoint import EndpointsDefinition, StepsByInputTypeAndEndpoint
label_desc: Use image node_id 7 for calling a global function with example usage: first_split_endpoint(endpoint_definition) and returns: next