code: def load_v1(state):
      config = pytext_config_from_json(state[CONFIG_JSON])
      # importing in file level generates circular import/dependency failures,
      # that need refator later to fix
      from .task import create_task
  
      task = create_task(
          config.task,
          metadata=state[DATA_STATE],
          model_state=state[MODEL_STATE],
      )
      return task, config, None
  
imports: import io
  import logging
  import os
  from typing import Dict, Optional
  import torch
  from pytext.config import config_to_json, pytext_config_from_json, PyTextConfig
  from pytext.data import CommonMetadata
  from pytext.data.tensorizers import Tensorizer
  from pytext.models import Model
  from pytext.trainers.training_state import TrainingState
  from pytext.utils.file_io import PathManager
  from .pytext_checkpoint_management import get_checkpoint_manager
label_desc: Use image node_id 2 for calling a global function with example usage: load_v1(state) and returns: task,  config,  None