code: def open(self, runtime_context: RuntimeContext):
      state_descriptor = ValueStateDescriptor("state", Types.FLOAT())
      state_ttl_config = (
          StateTtlConfig.new_builder(Time.seconds(1))
          .set_update_type(StateTtlConfig.UpdateType.OnReadAndWrite)
          .disable_cleanup_in_background()
          .build()
      )
      state_descriptor.enable_time_to_live(state_ttl_config)
      self.state = runtime_context.get_state(state_descriptor)
  
file_path: flink/flink-python/pyflink/examples/datastream/state_access.py
imports: from pyflink.common import Time
  from pyflink.common.typeinfo import Types
  from pyflink.datastream import StreamExecutionEnvironment
  from pyflink.datastream.functions import KeyedProcessFunction, RuntimeContext
  from pyflink.datastream.state import ValueStateDescriptor, StateTtlConfig
label_desc: Use image node_id 2 for calling the Sum obj's underlying member method code with example usage: obj.open(runtime_context) without return types