code: def convert_str_direction_to_vector(direction: str) -> np.ndarray:
      return {
          "X": np.array([1.0, 0.0, 0.0], dtype=np.float64),
          "Y": np.array([0.0, 1.0, 0.0], dtype=np.float64),
          "Z": np.array([0.0, 0.0, 1.0], dtype=np.float64),
          "-X": np.array([-1.0, 0.0, 0.0], dtype=np.float64),
          "-Y": np.array([0.0, -1.0, 0.0], dtype=np.float64),
          "-Z": np.array([0.0, 0.0, -1.0], dtype=np.float64),
      }[direction.upper()]
  
imports: import itertools
  import numpy
  import pyquaternion
  import traitlets
  from typing import Optional, Union, Tuple
  from kubric.core import traits
  from kubric.core import assets
  from kubric.core import materials
  from kubric.kubric_typing import ArrayLike
label_desc: Use image node_id 4 for calling a global function with example usage: convert_str_direction_to_vector(direction) and returns: dict