(self, file_obj)
return False
Determine if the CybOX File object has a related Artifact of
        'Network' type.

        :param file_obj: A CybOX File object
        :return: True if the File has a Network Traffic Artifact
Determine if the CybOX File object has a related Artifact of
        'Network' type.
Determine if the CybOX File object has a related Artifact of Network type .
def has_network_artifact(self, file_obj):
        """
        Determine if the CybOX File object has a related Artifact of
        'Network' type.

        :param file_obj: A CybOX File object
        :return: True if the File has a Network Traffic Artifact
        """
        if not file_obj or not file_obj.parent or not file_obj.parent.related_objects:
            return False
        for obj in file_obj.parent.related_objects: # attempt to find data in cybox
            if isinstance(obj.properties, Artifact) and obj.properties.type_ == Artifact.TYPE_NETWORK:
                return True
        return False
def has_network_artifact ( self , file_obj ) : if not file_obj or not file_obj . parent or not file_obj . parent . related_objects : return False for obj in file_obj . parent . related_objects : # attempt to find data in cybox if isinstance ( obj . properties , Artifact ) and obj . properties . type_ == Artifact . TYPE_NETWORK : return True return False