def get_namespaces_imported_by_route_io(self):<EOL>
namespace_data_types = sorted(self.get_route_io_data_types(),<EOL>key=lambda dt: dt.name)<EOL>referenced_namespaces = set()<EOL>for data_type in namespace_data_types:<EOL><INDENT>if data_type.namespace != self:<EOL><INDENT>referenced_namespaces.add(data_type.namespace)<EOL><DEDENT><DEDENT>return sorted(referenced_namespaces, key=lambda n: n.name)<EOL>
Returns a list of Namespace objects. A namespace is a member of this
list if it is imported by the current namespace and has a data type
from it referenced as an argument, result, or error of a route.
Namespaces are in ASCII order by name.