code: def test_unit_commitment_p1() -> None:
      np.random.seed(0)
      T = 10
      N = 5
      func = core.UnitCommitmentProblem(
          problem_name="semi-continuous",
          num_timepoints=T,
          num_generators=N,
      )
      op_out = np.ones((N, T))
      op_states = np.ones((N, T))
      value = func.function(
          operational_output=op_out, operational_states=op_states
      )
      assert isinstance(value, float)
      assert np.allclose(
          [value], [38721960.61493097], rtol=1e-04, atol=1e-05
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_unit_commitment_p1() without return types