code: def register_mesh(
      mesh_info: MeshInfo, base_path: Optional[str]
  ) -> None:
      geodists, symmetry, texcoords = (
          mesh_info.geodists,
          mesh_info.symmetry,
          mesh_info.texcoords,
      )
      if geodists:
          geodists = maybe_prepend_base_path(base_path, geodists)
      if symmetry:
          symmetry = maybe_prepend_base_path(base_path, symmetry)
      if texcoords:
          texcoords = maybe_prepend_base_path(base_path, texcoords)
      MeshCatalog[mesh_info.name] = MeshInfo(
          name=mesh_info.name,
          data=maybe_prepend_base_path(base_path, mesh_info.data),
          geodists=geodists,
          symmetry=symmetry,
          texcoords=texcoords,
      )
  
file_path: detectron2/projects/DensePose/densepose/data/meshes/catalog.py
imports: import logging
  from collections import UserDict
  from dataclasses import dataclass
  from typing import Iterable, Optional
  from ..utils import maybe_prepend_base_path
label_desc: Use image node_id 1 for calling a global function with example usage: register_mesh(mesh_info, base_path) without return types