class_docstr: The namespace type for the constructor of DFtoVW.
  The Namespace is a container for Feature object(s), and thus must
  be composed of a Feature object or a list of Feature objects.
class_docstr_tok: ["The","namespace","type","for","the","constructor","of","DFtoVW",".","The","Namespace","is","a","container","for","Feature","object","(","s",")",",","and","thus","must","be","composed","of","a","Feature","object","or","a","list","of","Feature","objects","."]
docstr: Check if attributes are of valid type.
  
  Raises:
      TypeError: If one of the attribute is not valid.
docstr_tok: ["Check","if","attributes","are","of","valid","type",".","Raises",":","TypeError",":","If","one","of","the","attribute","is","not","valid","."]
code: def check_attributes_type(self):
      """Check if attributes are of valid type.
  
      Raises:
          TypeError: If one of the attribute is not valid.
      """
      for attribute_name in ["name", "value"]:
          attribute_value = getattr(self, attribute_name)
          if attribute_value is not None and not isinstance(
              attribute_value, self.expected_type[attribute_name]
          ):
              raise TypeError(
                  "In Namespace, argument '{attribute_name}' should be either of the following type(s): {types}".format(
                      attribute_name=attribute_name,
                      types=repr(
                          [
                              x.__name__
                              for x in self.expected_type[
                                  attribute_name
                              ]
                          ]
                      )[1:-1],
                  )
              )
  
      valid_feature = all(
          [
              isinstance(feature, self.expected_type["features"])
              for feature in self.features
          ]
      )
      if not valid_feature:
          raise TypeError(
              "In Namespace, argument 'features' should be a Feature or a list of Feature."
          )
  
imports: import warnings
  import numpy
  import pandas
  from typing import Any, Hashable, List, Optional, Tuple, Type, Union
label_desc: Use image node_id 2 for calling the Namespace obj's underlying member method code with example usage: obj.check_attributes_type() without return types