def port_docs(self, actor_type, port_direction, port_name):
        docs = ''
        adoc = self.actor_docs(actor_type)
        if not adoc:
            return docs
        pdocs = adoc['inputs'] if port_direction.startswith('in') else adoc['outputs']
        for port, pdoc in pdocs:
            if port == port_name:
                docs = pdoc
                break
        return docs
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/store.py/DocumentationStore.port_docs/original