code: def _scale_camera_to_bounds(
      coordinate: float,
      axis_bounds: Tuple[float, float],
      is_position: bool,
  ) -> float:  # pragma: no cover
      """
      We set our plotly plot's axes' bounding box to [-1,1]x[-1,1]x[-1,1]. As such,
      the plotly camera location has to be scaled accordingly to have its world coordinates
      correspond to its relative plotted coordinates for viewing the plotly plot.
      This function does the scaling and offset to transform the coordinates.
  
      Args:
          coordinate: the float value to be transformed
          axis_bounds: the bounds of the plotly plot for the axis which
              the coordinate argument refers to
          is_position: If true, the float value is the coordinate of a position, and so must
              be moved in to [-1,1]. Otherwise it is a component of a direction, and so needs only
              to be scaled.
      """
      scale = (axis_bounds[1] - axis_bounds[0]) / 2
      if not is_position:
          return coordinate / scale
      offset = (axis_bounds[1] / scale) - 1
      return coordinate / scale - offset
  
imports: import warnings
  from typing import Dict, List, NamedTuple, Optional, Tuple, Union
  import plotly.graph_objects
  import torch
  from plotly.subplots import make_subplots
  from pytorch3d.renderer import HeterogeneousRayBundle, ray_bundle_to_ray_points, RayBundle, TexturesAtlas, TexturesVertex
  from pytorch3d.renderer.camera_utils import camera_to_eye_at_up
  from pytorch3d.renderer.cameras import CamerasBase
  from pytorch3d.structures import join_meshes_as_scene, Meshes, Pointclouds
label_desc: Use image node_id 14 for calling a global function with example usage: _scale_camera_to_bounds(coordinate, axis_bounds, is_position) and returns: unknown, unknown