code: def load_from_yaml(config_file):
      import yaml
  
      with open(config_file) as fin:
          config = yaml.load(fin, Loader=yaml.FullLoader)
      return MapConfig(
          map_strategy=config["map_strategy"],
          de_duplicate=config["de_duplicate"],
          span_to_token=config["span_to_token"],
      )
  
imports: from asyncio.log import logger
  import sys
  from typing import Tuple
  import numpy
  import logging
label_desc: Use image node_id 3 for calling the MapConfig obj's underlying member method code with example usage: obj.load_from_yaml(config_file) and returns: MapConfig