parameters: (name, accessor, types)
docstring: Returns a serialization statement for the given type.
docstring_summary: Returns a serialization statement for the given type.
docstring_tokens: Returns a serialization statement for the given type .
function: def serialize_type(name, accessor, types):
      """ Returns a serialization statement for the given type. """
      name = name.strip()
      description = type_description(name, types)
      if "struct" in description:
          return serialize_struct_type(name, accessor, types)
      elif "template" in description:
          return serialize_type_with_template(name, accessor, types)
      else:
          cast = description.get("cast", dereference_type(name))
          return serialize_atomic_type(name, cast, accessor)
function_tokens: def serialize_type ( name , accessor , types ) : name = name . strip ( ) description = type_description ( name , types ) if "struct" in description : return serialize_struct_type ( name , accessor , types ) elif "template" in description : return serialize_type_with_template ( name , accessor , types ) else : cast = description . get ( "cast" , dereference_type ( name ) ) return serialize_atomic_type ( name , cast , accessor )