<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_node(self, node_name, dataframe=False):
 """ Add a single node to the network. """

        if node_name is None:
            return None
        return self.add_nodes([node_name], dataframe=dataframe)