code: def test_client_truncates_tag_keys_and_values():
      client = MlflowAutologgingQueueingClient()
      tags_to_log = {
          "a"
          * (MAX_ENTITY_KEY_LENGTH + 5): "b"
          * (MAX_PARAM_VAL_LENGTH + 5),
          "c"
          * (MAX_ENTITY_KEY_LENGTH + 50): "d"
          * (MAX_PARAM_VAL_LENGTH + 50),
      }
  
      with mlflow.start_run() as run:
          client.set_tags(run_id=run.info.run_id, tags=tags_to_log)
          client.flush()
  
      run_tags = get_run_data(run.info.run_id)[2]
      assert run_tags == _truncate_dict(
          tags_to_log,
          max_key_length=MAX_ENTITY_KEY_LENGTH,
          max_value_length=MAX_TAG_VAL_LENGTH,
      )
  
imports: import time
  from unittest import mock
  import pytest
  import mlflow
  from mlflow import MlflowClient
  from mlflow.exceptions import MlflowException
  from mlflow.utils import _truncate_dict
  from mlflow.utils.autologging_utils import MlflowAutologgingQueueingClient
  from mlflow.utils.validation import MAX_ENTITY_KEY_LENGTH, MAX_METRICS_PER_BATCH, MAX_PARAM_VAL_LENGTH, MAX_PARAMS_TAGS_PER_BATCH, MAX_TAG_VAL_LENGTH
label_desc: Use image node_id 3 for calling a global function with example usage: test_client_truncates_tag_keys_and_values() without return types