code: def get_single_reference_item(
      property: Dict, references: Dict
  ) -> Dict:
      # Ref can either be directly in the properties or the first element of allOf
      reference = property.get("$ref")
      if reference is None:
          reference = property["allOf"][0]["$ref"]
      return resolve_reference(reference, references)
  
file_path: opyrator/src/opyrator/ui/schema_utils.py
imports: from typing import Dict
label_desc: Use image node_id 2 for calling a global function with example usage: get_single_reference_item(property, references) and returns: resolve_reference