code: def test_target_config():
      """
      Test that constructing a target from a dictionary works.
      """
      target_config = {
          "kind": "llvm",
          "keys": ["arm_cpu", "cpu"],
          "device": "arm_cpu",
          "libs": ["cblas"],
          "mfloat-abi": "hard",
          "mattr": ["+neon", "-avx512f"],
      }
      # Convert config dictionary to json string.
      target_config_str = json.dumps(target_config)
      # Test both dictionary input and json string.
      for config in [target_config, target_config_str]:
          target = tvm.target.Target(config)
          assert target.kind.name == "llvm"
          assert all([key in target.keys for key in ["arm_cpu", "cpu"]])
          assert target.device_name == "arm_cpu"
          assert target.libs == ["cblas"]
          assert target.attrs["mfloat-abi"] == "hard"
          assert all(
              [
                  attr in target.attrs["mattr"]
                  for attr in ["+neon", "-avx512f"]
              ]
          )
  
imports: import json
  import pytest
  import tvm
  import tvm.testing
  from tvm.target import Target, arm_cpu, bifrost, cuda, intel_graphics, mali, rocm, vta
label_desc: Use image node_id 15 for calling a global function with example usage: test_target_config() without return types