docstr: Splits the path string and returns name of anatomical measure
  (eg: fa), bundle name eg(AF_L) and bundle name with metric name
  (eg: AF_L_fa)
  
  Parameters
  ----------
  path : string
      Path to the input metric files. This path may
      contain wildcards to process multiple inputs at once.
docstr_tok: ["Splits","the","path","string","and","returns","name","of","anatomical","measure","(","eg",":","fa",")",",","bundle","name","eg","(","AF_L",")","and","bundle","name","with","metric","name","(","eg",":","AF_L_fa",")","Parameters","--","--","--","--","--","path",":","string","Path","to","the","input","metric","files",".","This","path","may","contain","wildcards","to","process","multiple","inputs","at","once","."]
code: def get_metric_name(self, path):
      """Splits the path string and returns name of anatomical measure
      (eg: fa), bundle name eg(AF_L) and bundle name with metric name
      (eg: AF_L_fa)
  
      Parameters
      ----------
      path : string
          Path to the input metric files. This path may
          contain wildcards to process multiple inputs at once.
      """
  
      head_tail = os.path.split(path)
      name = head_tail[1]
      count = 0
      i = len(name) - 1
      while i > 0:
          if name[i] == ".":
              count = i
              break
          i = i - 1
  
      for j in range(len(name)):
          if name[j] == "_":
              if (
                  name[j + 1] != "L"
                  and name[j + 1] != "R"
                  and name[j + 1] != "F"
              ):
                  return name[j + 1 : count], name[:j], name[:count]
  
      return " ", " ", " "
  
imports: import logging
  import numpy
  import os
  import json
  import warnings
  from time import time
  from scipy.ndimage import binary_dilation
  from dipy.utils.optpkg import optional_package
  from dipy.io import read_bvals_bvecs
  from dipy.io.image import load_nifti, save_nifti
  from dipy.core.gradients import gradient_table
  from dipy.reconst.dti import TensorModel
  from dipy.io.peaks import load_peaks
  from dipy.io.streamline import load_tractogram
  from dipy.segment.mask import segment_from_cfa
  from dipy.segment.mask import bounding_box
  from dipy.tracking.streamline import transform_streamlines
  from glob import glob
  from dipy.workflows.workflow import Workflow
  from dipy.segment.bundles import bundle_shape_similarity
  from dipy.stats.analysis import assignment_map
  from dipy.stats.analysis import anatomical_measures
  from dipy.stats.analysis import peak_values
label_desc: Use image node_id 2 for calling the LinearMixedModelsFlow obj's underlying member method code with example usage: obj.get_metric_name(path) and returns: str,  str,  str, name,  name,  name