code: def find_schema(package: str, gotype: str) -> Schema:
      """Locate a json-schema file from a type name."""
      if re.match(".*V[0-9]+", gotype) is None:
          raise AssertionError(
              f"{gotype} is not a valid schema type name; it should end in Vx where x is a digit"
          )
      version = gotype[-2:].lower()
      dir = os.path.join(HERE, package, version)
      for file in os.listdir(dir):
          if not file.endswith(".json"):
              continue
          path = os.path.join(dir, file)
          urlend = os.path.relpath(path, HERE)
          url = os.path.join(URLBASE, urlend)
          with open(path) as f:
              schema = Schema(url, f.read())
              if schema.golang_title != gotype:
                  continue
              return schema
      raise AssertionError(
          f"failed to find schema matching title=={gotype}"
      )
  
imports: import argparse
  import json
  import os
  import re
  import sys
  from typing import List, Optional, Tuple
label_desc: Use image node_id 7 for calling a global function with example usage: find_schema(package, gotype) and returns: schema