code: def identify_core(core):
      
      for datatype, identifier in {
              int: _identify_scaler,
              numpy.int8: _identify_scaler,
              numpy.int16: _identify_scaler,
              numpy.int32: _identify_scaler,
              numpy.int64: _identify_scaler,
              float: _identify_scaler,
              numpy.float16: _identify_scaler,
              numpy.float32: _identify_scaler,
              numpy.float64: _identify_scaler,
              chaospy.poly.base.Poly: _identify_poly,
              dict: _identify_dict,
              numpy.ndarray: _identify_iterable,
              list: _identify_iterable,
              tuple: _identify_iterable,
      }.items():
          if isinstance(core, datatype):
              return identifier(core)
  
      raise TypeError(
          "Poly arg: 'core' is not a valid type " + repr(core))
docs: Identify the polynomial argument.