code: def _find_json_schema(
      schema_version: Optional[str] = None,
  ) -> Dict[str, Any]:
      """Returns the JSON schema of a model card field in dictionary format.
  
      Args:
        schema_version: The version of the schema to fetch. By default, use the
          latest version.
  
      Returns:
        JSON schema as a dictionary.
  
      Raises:
        ValueError: If `schema_version` does not correspond to a model card schema
        version.
      """
      if not schema_version:
          schema_version = _LATEST_SCHEMA_VERSION
      if schema_version not in _SCHEMA_VERSIONS:
          raise ValueError(
              "Cannot find schema version that matches the version of the given "
              "model card. Found Versions: {}. Given Version: {}".format(
                  ", ".join(_SCHEMA_VERSIONS), schema_version
              )
          )
  
      schema_file = os.path.join(
          "schema", "v" + schema_version, _SCHEMA_FILE_NAME
      )
      json_file = pkgutil.get_data("model_card_toolkit", schema_file)
      schema = json.loads(json_file)
      return schema
  
file_path: model-card-toolkit/model_card_toolkit/utils/json_utils.py
imports: import json
  import logging
  import os
  import pkgutil
  from typing import Any, Dict, Optional, Text
  import jsonschema
label_desc: Use image node_id 1 for calling a global function with example usage: _find_json_schema(schema_version) and returns: schema