Bu yerda Python funksiyasi bo'lib, u chuqurlik xaritasi tasvirlangan 2D numpy massivini oladi va uni matplotlib yordamida ko'rsatib beradi. Funksiya shuningdek, chuqurlik-rang mosligini ko'rsatadigan plotning yonida rangli satr yaratadi. ``python import numpy as np import matplotlib.pyplot as plt def visualize_depth_map: """ Matplotlib yordamida chuqurlik xaritasini ko'rsatib bering. Args: depth_map (numpy.ndarray): A 2D numpy array representing the map depth. """ if depth_map.ndim = 2: raise ValueError{"Input array should be a 2D numpy array") pltmapmap.figure{) img = pltmap.thow{} cm depth
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence