code: def dist2pixels(
      dist: float, width: float, obj_width: float = 30
  ) -> float:
      """
      Convert distance to pixels.
  
      :param dist: Distance to object.
      :param width: Width of image.
      :param obj_width: Width of object.
      :return: Distance in pixels.
      """
      dist_inches = dist * 12
      return 1.0 * dist_inches * width / obj_width
  
imports: from typing import Optional, Tuple, Union, TYPE_CHECKING, List
  import math
  import numpy
  from art.estimators.estimator import BaseEstimator
  from art.estimators.classification import ClassifierMixin
  from art.utils import get_labels_np_array
label_desc: Use image node_id 1 for calling a global function with example usage: dist2pixels(dist, width, obj_width) and returns: unknown