original_docstring: 
          Test if there are at least one program in the team that is able to provide a valid action
          If there is no such program, return None, so that the environment will use a default action
          
docstring: Test if there are at least one program in the team that is able to provide a valid action
  If there is no such program, return None, so that the environment will use a default action
docstring_tokens: Test if there are at least one program in the team that is able to provide a valid action If there is no such program return None so that the environment will use a default action
code: def _actions_are_available(self, valid_actions):
          """
          Test if there are at least one program in the team that is able to provide a valid action
          If there is no such program, return None, so that the environment will use a default action
          """
          actions = flatten([p.get_raw_actions() for p in self.programs])
          possible_action = set(actions).intersection(valid_actions)
          if len(possible_action) == 0:
              return False
          return True
code_tokens: def _actions_are_available ( self , valid_actions ) : actions = flatten ( [ p . get_raw_actions ( ) for p in self . programs ] ) possible_action = set ( actions ) . intersection ( valid_actions ) if len ( possible_action ) == 0 : return False return True
short_docstring: Test if there are at least one program in the team that is able to provide a valid action
  If there is no such program, return None, so that the environment will use a default action
short_docstring_tokens: Test if there are at least one program in the team that is able to provide a valid action If there is no such program return None so that the environment will use a default action
comment: """
          Test if there are at least one program in the team that is able to provide a valid action
          If there is no such program, return None, so that the environment will use a default action
          """