code: def test_repeated_name_registration_warn():
      from dask.cli import _register_command_ep
  
      one = importlib_metadata.EntryPoint(
          name="one",
          value="dask.tests.test_cli:good_command",
          group="dask_cli",
      )
  
      two = importlib_metadata.EntryPoint(
          name="two",
          value="dask.tests.test_cli:good_command_2",
          group="dask_cli",
      )
  
      _register_command_ep(dummy_cli_2, one)
      with pytest.warns(
          UserWarning, match="While registering the command with name"
      ):
          _register_command_ep(dummy_cli_2, two)
  
imports: from __future__ import annotations
  import json
  import platform
  import sys
  import click
  import importlib_metadata
  import pytest
  from click.testing import CliRunner
  import dask
  import dask.cli
label_desc: Use image node_id 13 for calling a global function with example usage: test_repeated_name_registration_warn() without return types