code: def init_pypsa_network(time_range_lim):
      
      network = Network()
      network.set_snapshots(time_range_lim)
      snapshots = network.snapshots
  
      return network, snapshots
docs: Instantiate PyPSA network
      Parameters
      ----------
      time_range_lim:
      Returns
      -------
      network: PyPSA network object
          Contains powerflow problem
      snapshots: iterable
          Contains snapshots to be analyzed by powerplow calculation