code: def test_create_node_tag(patch_vsphere_sdk_provider):
      vsp = mock_vsphere_sdk_provider()
      vsp.vsphere_sdk_client.tagging.Tag.CreateSpec.return_value = (
          "tag_spec"
      )
      vsp.vsphere_sdk_client.tagging.Tag.create.return_value = (
          "tag_id_1"
      )
      tag_id = vsp.create_node_tag("ray_node_tag", "test_category_id")
      assert tag_id == "tag_id_1"
  
file_path: ray/python/ray/tests/vsphere/test_vsphere_sdk_provider.py
imports: import pytest
  from unittest.mock import MagicMock, patch
  from ray.autoscaler._private.vsphere.vsphere_sdk_provider import VsphereSdkProvider, Constants, HardPower
label_desc: Use image node_id 10 for calling a global function with example usage: test_create_node_tag(patch_vsphere_sdk_provider) without return types