code: def get_texture_atlases(
      json_str: Optional[str],
  ) -> Optional[Dict[str, Optional[np.ndarray]]]:
      """
      json_str is a JSON string representing a mesh_name -> texture_atlas_path dictionary
      """
      if json_str is None:
          return None
  
      paths = json.loads(json_str)
      return {
          mesh_name: get_texture_atlas(path)
          for mesh_name, path in paths.items()
      }
  
imports: import json
  import numpy
  from functools import lru_cache
  from typing import Dict, List, Optional, Tuple
  import cv2
  import torch
  from detectron2.utils.file_io import PathManager
  from densepose.modeling import build_densepose_embedder
  from densepose.modeling.cse.utils import get_closest_vertices_mask_from_ES
  from ..data.utils import get_class_to_mesh_name_mapping
  from ..structures import DensePoseEmbeddingPredictorOutput
  from ..structures.mesh import create_mesh
  from .base import Boxes, Image, MatrixVisualizer
  from .densepose_results_textures import get_texture_atlas
label_desc: Use image node_id 2 for calling a global function with example usage: get_texture_atlases(json_str) and returns: unknown, None