class_docstr: Base class where the decorators and base function for the other
  classes of this python wrapper will inherit from.
docstr: Convert to the alpha vantage math type integer. It returns an
  integer correspondent to the type of math to apply to a function. It
  raises ValueError if an integer greater than the supported math types
  is given.
  
  Keyword Arguments:
      matype:  The math type of the alpha vantage api. It accepts
      integers or a string representing the math type.
  
          * 0 = Simple Moving Average (SMA),
          * 1 = Exponential Moving Average (EMA),
          * 2 = Weighted Moving Average (WMA),
          * 3 = Double Exponential Moving Average (DEMA),
          * 4 = Triple Exponential Moving Average (TEMA),
          * 5 = Triangular Moving Average (TRIMA),
          * 6 = T3 Moving Average,
          * 7 = Kaufman Adaptive Moving Average (KAMA),
          * 8 = MESA Adaptive Moving Average (MAMA)
docstr_tok: ["Convert","to","the","alpha","vantage","math","type","integer",".","It","returns","an","integer","correspondent","to","the","type","of","math","to","apply","to","a","function",".","It","raises","ValueError","if","an","integer","greater","than","the","supported","math","types","is","given",".","Keyword","Arguments",":","matype",":","The","math","type","of","the","alpha","vantage","api",".","It","accepts","integers","or","a","string","representing","the","math","type",".","*","0","=","Simple","Moving","Average","(","SMA",")",",","*","1","=","Exponential","Moving","Average","(","EMA",")",",","*","2","=","Weighted","Moving","Average","(","WMA",")",",","*","3","=","Double","Exponential","Moving","Average","(","DEMA",")",",","*","4","=","Triple","Exponential","Moving","Average","(","TEMA",")",",","*","5","=","Triangular","Moving","Average","(","TRIMA",")",",","*","6","=","T3","Moving","Average",",","*","7","=","Kaufman","Adaptive","Moving","Average","(","KAMA",")",",","*","8","=","MESA","Adaptive","Moving","Average","(","MAMA",")"]
code: def map_to_matype(self, matype):
      """Convert to the alpha vantage math type integer. It returns an
      integer correspondent to the type of math to apply to a function. It
      raises ValueError if an integer greater than the supported math types
      is given.
  
      Keyword Arguments:
          matype:  The math type of the alpha vantage api. It accepts
          integers or a string representing the math type.
  
              * 0 = Simple Moving Average (SMA),
              * 1 = Exponential Moving Average (EMA),
              * 2 = Weighted Moving Average (WMA),
              * 3 = Double Exponential Moving Average (DEMA),
              * 4 = Triple Exponential Moving Average (TEMA),
              * 5 = Triangular Moving Average (TRIMA),
              * 6 = T3 Moving Average,
              * 7 = Kaufman Adaptive Moving Average (KAMA),
              * 8 = MESA Adaptive Moving Average (MAMA)
      """
      # Check if it is an integer or a string
      try:
          value = int(matype)
          if abs(value) > len(AlphaVantage._ALPHA_VANTAGE_MATH_MAP):
              raise ValueError(
                  "The value {} is not supported".format(value)
              )
      except ValueError:
          value = AlphaVantage._ALPHA_VANTAGE_MATH_MAP.index(matype)
      return value
  
file_path: alpha_vantage/alpha_vantage/alphavantage.py
imports: import requests
  import os
  from functools import wraps
  import inspect
  import sys
  import re
  import csv
label_desc: Use image node_id 6 for calling the AlphaVantage obj's underlying member method code with example usage: obj.map_to_matype(matype) and returns: value