<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pendulum():
 """Configuration for the pendulum classic control task."""

  locals().update(default())
  # Environment
  env = 'Pendulum-v0'
  max_length = 200
  steps = 1e6  # 1M
  # Optimization
  batch_size = 20
  chunk_length = 50
  return locals()