code: def build_json_schema(value, parent_builder=None):
      from .models import Base
  
      cls = value if inspect.isclass(value) else value.__class__
      if issubclass(cls, Base):
          return build_json_schema_object(cls, parent_builder)
      else:
          return build_json_schema_primitive(cls, parent_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 3 for calling a global function with example usage: build_json_schema(value, parent_builder) and returns: build_json_schema_object, build_json_schema_primitive