original_docstring: 
          For a given document and element type returns the cost given the cost dictionary (cost_lookup)
          if no cost lookup exists or if the element is not in the dictionary, a nan value is assigned.
          :param doc_id: string
          :param element_type: string
          :return: return a float or nan value
          
docstring: For a given document and element type returns the cost given the cost dictionary (cost_lookup)
  if no cost lookup exists or if the element is not in the dictionary, a nan value is assigned.
docstring_tokens: For a given document and element type returns the cost given the cost dictionary ( cost_lookup ) if no cost lookup exists or if the element is not in the dictionary a nan value is assigned .
code: def _get_cost(self, doc_id, element_type):
          """
          For a given document and element type returns the cost given the cost dictionary (cost_lookup)
          if no cost lookup exists or if the element is not in the dictionary, a nan value is assigned.
          :param doc_id: string
          :param element_type: string
          :return: return a float or nan value
          """
          if self.cost_lookup is None:
              return np.nan
          else:
              if element_type in self.cost_lookup:
                  return self.cost_lookup[element_type]
              else:
                  return np.nan
code_tokens: def _get_cost ( self , doc_id , element_type ) : if self . cost_lookup is None : return np . nan else : if element_type in self . cost_lookup : return self . cost_lookup [ element_type ] else : return np . nan
short_docstring: For a given document and element type returns the cost given the cost dictionary (cost_lookup)
  if no cost lookup exists or if the element is not in the dictionary, a nan value is assigned.
short_docstring_tokens: For a given document and element type returns the cost given the cost dictionary ( cost_lookup ) if no cost lookup exists or if the element is not in the dictionary a nan value is assigned .
comment: """
          For a given document and element type returns the cost given the cost dictionary (cost_lookup)
          if no cost lookup exists or if the element is not in the dictionary, a nan value is assigned.
          :param doc_id: string
          :param element_type: string
          :return: return a float or nan value
          """