code: def test_validation_collection_name():
      # Collection names are limited to 255 chars due to filesystem constraints
      response = request_with_validation(
          api="/collections/{collection_name}/points/{id}",
          method="GET",
          path_params={
              "collection_name": """\
                  extremelylongnameextremelylongnameextremelylongname\
                  extremelylongnameextremelylongnameextremelylongname\
                  extremelylongnameextremelylongnameextremelylongname\
                  extremelylongnameextremelylongnameextremelylongname\
                  extremelylongnameextremelylongnameextremelylongname\
                  extremelylongnameextremelylongnameextremelylongname\
                  """,
              "id": 1,
          },
      )
      assert not response.ok
      assert "Validation error" in response.json()["status"]["error"]
  
imports: import pytest
  from .helpers.collection_setup import basic_collection_setup, drop_collection
  from .helpers.helpers import request_with_validation
label_desc: Use image node_id 2 for calling a global function with example usage: test_validation_collection_name() without return types