code: def remove_external_references_from_srl_layer(self):
          
          if self.srl_layer is not None:
              for pred in self.srl_layer.get_predicates():
                  pred.remove_external_references()
                  pred.remove_external_references_from_roles()
docs: Removes all external references present in the term layer