code: def _make_parents(values: parent_types) -> List[Optional[MapRegion]]:
      values = _ensure_is_parent_list(values)
  
      if values is None:
          return []
  
      return list(
          map(
              lambda v: _make_parent_region(v)
              if values is not None
              else None,
              values,
          )
      )
  
imports: from collections import namedtuple
  from collections.abc import Iterable
  from typing import Union, List, Optional, Dict
  from pandas import Series
  from .geocodes import _to_level_kind, request_types, Geocodes, _raise_exception, _ensure_is_list
  from .gis.geocoding_service import GeocodingService
  from .gis.geometry import GeoRect, GeoPoint
  from .gis.request import RequestBuilder, GeocodingRequest, RequestKind, MapRegion, AmbiguityResolver, RegionQuery, LevelKind, IgnoringStrategyKind, PayloadKind, ReverseGeocodingRequest
  from .gis.response import Response, SuccessResponse
  from .type_assertion import assert_list_type
label_desc: Use image node_id 6 for calling a global function with example usage: _make_parents(values) and returns: list, list