code: def convert_attribute_types(cls, attribute_list, attribute_types):
      jsonschema = {}
      jsonschema["title"] = cls.__name__
      jsonschema["type"] = "object"
      jsonschema["properties"] = {}
      jsonschema["additionalProperties"] = False
      for attribute, _type in dict(
          zip(attribute_list, attribute_types)
      ).items():
          attribute_dict = {}
          attribute_dict["type"] = get_type_mapping(_type)
          jsonschema["properties"][attribute] = attribute_dict
      jsonschema["required"] = list(attribute_list)
      return jsonschema
  
file_path: PySyft/packages/syft/src/syft/util/schema.py
imports: from collections import defaultdict
  import json
  import os
  from pathlib import Path
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Optional
  from typing import Tuple
  from typing import Type
  import syft
label_desc: Use image node_id 4 for calling a global function with example usage: convert_attribute_types(cls, attribute_list, attribute_types) and returns: jsonschema