code: def orientation_from_string(string_ornt):
      """Return an array representation of an ornt string."""
      return gradients.orientation_from_string(string_ornt=string_ornt)
  
file_path: dipy/dipy/io/bvectxt.py
imports: from os.path import splitext
  import numpy
  from dipy.core import gradients
  from dipy.utils.deprecator import deprecate_with_version
label_desc: Use image node_id 5 for calling a global function with example usage: orientation_from_string(string_ornt) and returns: gradients