code: def is_reference_target(resource, rtype, label):
      
  
      prop = resource.props.references.get(rtype, False)
      if prop:
          return label in prop
docs: Return true if the resource has this rtype with this label