def METHOD_NAME(self, nodename, attributes=None):
    """
    Return data on a node for a batch system
    """
    expect(
        self.batch_system_node is not None,
        "Batch system not set, use parent get_node?",
    )
    if self.machine_node is not None:
        result = self.get_optional_child(
            nodename, attributes, root=self.machine_node
        )
        if result is None:
            return self.get_optional_child(
                nodename, attributes, root=self.batch_system_node
            )
        else:
            return result
    else:
        return self.get_optional_child(
            nodename, attributes, root=self.batch_system_node
        )