def get_output_ref(self, field, index=None, metadata=None):

        link = {"$dnanexus_link": {"analysis": self._dxid, "field": field}}
        if index is not None:
            link["$dnanexus_link"]["index"] = index
        if metadata is not None:
            link["$dnanexus_link"]["metadata"] = metadata
        return link
'normal' (aka 'shared') relations are relations from the shared (or
dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/bindings/dxanalysis.py/DXAnalysis.get_output_ref--crossover with--dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/related.py/NormalToNormalFKTest.test_relation