parameters: (
      graph_data: t.List[t.Tuple[datetime, t.Optional[int]]],
      start_time: datetime,
      end_time: datetime,
  )
return_statement: return graph_data
docstring: Pad graph data with 0 values if the first or last entries are too far (>60
      seconds) from start or end time respectively.
  
      Note: Mutates the graph_data parameter, but returns it too.
docstring_summary: Pad graph data with 0 values if the first or last entries are too far (>60
      seconds) from start or end time respectively.
docstring_tokens: Pad graph data with 0 values if the first or last entries are too far ( > 60 seconds ) from start or end time respectively .
function: def _pad_with_None_values(
      graph_data: t.List[t.Tuple[datetime, t.Optional[int]]],
      start_time: datetime,
      end_time: datetime,
  ) -> t.List[t.Tuple[datetime, t.Optional[int]]]:
      """
      Pad graph data with 0 values if the first or last entries are too far (>60
      seconds) from start or end time respectively.
  
      Note: Mutates the graph_data parameter, but returns it too.
      """
  
      if (
          len(graph_data) == 0
          or abs((start_time - graph_data[0][0]).total_seconds()) > 60
      ):
          # If start time and the first graph point have more than a minute, pad
          graph_data.insert(0, (start_time, None))
  
      if len(graph_data) == 0 or abs((end_time - graph_data[-1][0]).total_seconds()) > 60:
          # If start time and the first graph point have more than a minute, pad
          graph_data.append((end_time, None))
  
      return graph_data
function_tokens: def _pad_with_None_values ( graph_data : t . List [ t . Tuple [ datetime , t . Optional [ int ] ] ] , start_time : datetime , end_time : datetime , ) -> t . List [ t . Tuple [ datetime , t . Optional [ int ] ] ] : if ( len ( graph_data ) == 0 or abs ( ( start_time - graph_data [ 0 ] [ 0 ] ) . total_seconds ( ) ) > 60 ) : # If start time and the first graph point have more than a minute, pad graph_data . insert ( 0 , ( start_time , None ) ) if len ( graph_data ) == 0 or abs ( ( end_time - graph_data [ - 1 ] [ 0 ] ) . total_seconds ( ) ) > 60 : # If start time and the first graph point have more than a minute, pad graph_data . append ( ( end_time , None ) ) return graph_data