def validate_composite_type_param(type_param, error_msg_prefix):
  # Must either be a TypeConstraint instance or a basic Python type.
  is_not_type_constraint = (
      not isinstance(type_param, (type, types.ClassType, TypeConstraint))
      and type_param is not None)
  is_forbidden_type = (isinstance(type_param, type) and
                       type_param in DISALLOWED_PRIMITIVE_TYPES)

  if is_not_type_constraint or is_forbidden_type:
    raise TypeError('%s must be a non-sequence, a type, or a TypeConstraint. %s'
                    ' is an instance of %s.' % (error_msg_prefix, type_param,
                                                type_param.__class__.__name__))
Set initial value for execution count.  Only needed if the iteration
dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/typehints/typehints.py/validate_composite_type_param--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/workflow.py/Workflow.set_initial_count