code: def _get_input_format_from_name(self, name):
          
          try:
              int(name)
              src_format = 'ISOnumeric'
          except ValueError:
              if len(name) == 2:
                  src_format = 'ISO2'
              elif len(name) == 3:
                  src_format = 'ISO3'
              else:
                  src_format = 'regex'
          return src_format
docs: Determines the input format based on the given country name
  
          Parameters
          ----------
  
          name : string
  
          Returns
          -------
  
          string : valid input format