code: def build_json_schema_object(cls, parent_builder=None):
      builder = builders.ObjectBuilder(cls, parent_builder)
      if builder.count_type(builder.type) > 1:
          return builder
      for _, name, field in cls.iterate_with_name():
          if isinstance(field, fields.EmbeddedField):
              builder.add_field(
                  name, field, _parse_embedded(field, builder)
              )
          elif isinstance(field, fields.ListField):
              builder.add_field(
                  name, field, _parse_list(field, builder)
              )
          else:
              builder.add_field(
                  name, field, _create_primitive_field_schema(field)
              )
      return builder
  
file_path: clearml/clearml/backend_api/session/jsonmodels/parsers.py
imports: import inspect
  from .None import fields, builders, errors
label_desc: Use image node_id 4 for calling a global function with example usage: build_json_schema_object(cls, parent_builder) and returns: builder, builder