code: def makedirs_rm_exist(dir):
      if osp.isdir(dir):
          fs.rm(dir)
      os.makedirs(dir, exist_ok=True)
  
file_path: pytorch_geometric/torch_geometric/graphgym/config.py
imports: import functools
  import inspect
  import logging
  import os
  import os.path
  import warnings
  from collections.abc import Iterable
  from dataclasses import asdict
  from typing import Any
  import torch_geometric.graphgym.register
  from torch_geometric.io import fs
label_desc: Use image node_id 5 for calling a global function with example usage: makedirs_rm_exist(dir) without return types