code: def _validate_children(children):
      if children is not None:
          if not all(isinstance(c, Component) for c in children):
              raise ValidationError(
                  "All children must be %s" % Component
              )
  
          if len(set(type(c) for c in children)) > 1:
              raise ValidationError("All children must have same type")
  
file_path: fiftyone/fiftyone/core/spaces.py
imports: from bson import ObjectId
  from mongoengine.errors import ValidationError
  import uuid
  import fiftyone.core.fields
  from fiftyone.core.odm import EmbeddedDocument
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_children(children) without return types