def METHOD_NAME(namespace, source):
    if source == "-":
        source_io = sys.stdin
        if not namespace:
            namespace = schema.MASTER_NAMESPACE
    else:
        source_io = open(source)
        if not namespace:
            name, _ = os.path.splitext(os.path.basename(source))
            namespace = name
    content = source_io.read()
    return namespace, content