code: def from_xmrs(cls, xmrs, predicate_modifiers=False, **kwargs):
          
          eps = xmrs.eps()
          deps = _find_basic_dependencies(xmrs, eps)
  
          # if requested, find additional dependencies not captured already
          if predicate_modifiers is True:
              func = non_argument_modifiers(role='ARG1', only_connecting=True)
              addl_deps = func(xmrs, deps)
          elif predicate_modifiers is False or predicate_modifiers is None:
              addl_deps = {}
          elif hasattr(predicate_modifiers, '__call__'):
              addl_deps = predicate_modifiers(xmrs, deps)
          else:
              raise TypeError('a boolean or callable is required')
  
          for nid, deplist in addl_deps.items():
              deps.setdefault(nid, []).extend(deplist)
  
          ids = _unique_ids(eps, deps)
          root = _find_root(xmrs)
          if root is not None:
              root = ids[root]
          nodes = [Node(ids[n.nodeid], *n[1:]) for n in make_nodes(xmrs)]
          edges = [(ids[a], rarg, ids[b]) for a, deplist in deps.items()
                                          for rarg, b in deplist]
  
          return cls(top=root, nodes=nodes, edges=edges)
docs: Instantiate an Eds from an Xmrs (lossy conversion).
  
          Args:
              xmrs (:class:`~delphin.mrs.xmrs.Xmrs`): Xmrs instance to
                  convert from
              predicate_modifiers (function, bool): function that is
                  called as `func(xmrs, deps)` after finding the basic
                  dependencies (`deps`), returning a mapping of
                  predicate-modifier dependencies; the form of `deps` and
                  the returned mapping are `{head: [(role, dependent)]}`;
                  if *predicate_modifiers* is `True`, the function is
                  created using :func:`non_argument_modifiers` as:
                  `non_argument_modifiers(role="ARG1", connecting=True);
                  if *predicate_modifiers* is `False`, only the basic
                  dependencies are returned