docstr: Analyses a docstring parameter line and returns the good argparser
  type.
  
  Parameters
  ----------
  text : string
      Parameter text line to inspect.
  
  Returns
  -------
  arg_type : The type found by inspecting the text line.
  
  is_nargs : Whether or not this argument is nargs
  (arparse's multiple values argument)
docstr_tok: ["Analyses","a","docstring","parameter","line","and","returns","the","good","argparser","type",".","Parameters","--","--","--","--","--","text",":","string","Parameter","text","line","to","inspect",".","Returns","--","--","--","-","arg_type",":","The","type","found","by","inspecting","the","text","line",".","is_nargs",":","Whether","or","not","this","argument","is","nargs","(","arparse","'s","multiple","values","argument",")"]
code: def _select_dtype(self, text):
      """Analyses a docstring parameter line and returns the good argparser
      type.
  
      Parameters
      ----------
      text : string
          Parameter text line to inspect.
  
      Returns
      -------
      arg_type : The type found by inspecting the text line.
  
      is_nargs : Whether or not this argument is nargs
      (arparse's multiple values argument)
      """
      text = text.lower()
      nargs_str = "variable"
      is_nargs = nargs_str in text
      arg_type = None
  
      if "str" in text:
          arg_type = str
      if "int" in text:
          arg_type = int
      if "float" in text:
          arg_type = float
      if "bool" in text:
          arg_type = bool
      if "tuple" in text:
          arg_type = tuple
  
      return arg_type, is_nargs
  
file_path: dipy/dipy/workflows/base.py
imports: import argparse
  import inspect
  from dipy.workflows.docstring_parser import NumpyDocString
label_desc: Use image node_id 4 for calling the IntrospectiveArgumentParser obj's underlying member method code with example usage: obj._select_dtype(text) and returns: arg_type,  is_nargs