original_docstring: 
          Register variables to the data catalog.
          
docstring: Register variables to the data catalog.
docstring_tokens: Register variables to the data catalog .
code: def register_variables(self, variable_forms: List[StandardVariableForm]) -> List[str]:
          """
          Register variables to the data catalog.
          """
          DCatAPI.logger.debug("register variables: %s", variable_forms)
          request_headers = {'Content-Type': "application/json", 'X-Api-Key': self.get_api_key()}
          resp = requests.post(f"{DATA_CATALOG_API}/knowledge_graph/register_standard_variables",
                               headers=request_headers,
                               json={"standard_variables": [var.__dict__ for var in variable_forms]})
  
          parsed_resp = self.handle_api_response(resp)
          ids = []
          for var in variable_forms:
              for record in parsed_resp['standard_variables']:
                  if record['uri'] == var.uri:
                      ids.append(record['record_id'])
                      break
          return ids
code_tokens: def register_variables ( self , variable_forms : List [ StandardVariableForm ] ) -> List [ str ] : DCatAPI . logger . debug ( "register variables: %s" , variable_forms ) request_headers = { 'Content-Type' : "application/json" , 'X-Api-Key' : self . get_api_key ( ) } resp = requests . post ( f"{DATA_CATALOG_API}/knowledge_graph/register_standard_variables" , headers = request_headers , json = { "standard_variables" : [ var . __dict__ for var in variable_forms ] } ) parsed_resp = self . handle_api_response ( resp ) ids = [ ] for var in variable_forms : for record in parsed_resp [ 'standard_variables' ] : if record [ 'uri' ] == var . uri : ids . append ( record [ 'record_id' ] ) break return ids
short_docstring: Register variables to the data catalog.
short_docstring_tokens: Register variables to the data catalog .
comment: """
          Register variables to the data catalog.
          """