<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Global Beacon
Global Beacon lets anyone in your organization find datasets based on the entities it contains (i.e. variants, genets, targets). 
Note
Step1:  Enabling Global Beacon on dataset
First let’s start with enabling Global Beacon on the dataset
Step2:  Please notice that in the response, attribute status is indexing. While indexing is still in progress you won't be able to perform Global Beacon Search.
Checking the status of Global Beacon
Let’s check now the status of Global Beacon indexing for the datasets
Step3:  As we can see, indexing has been completed (status is completed and progress percentage is 100%). 
Disabling Global Beacon on dataset
Now when we made sure that global beacon exists for the dataset, when we don't need it any more, we can disable/delete it.
Step4:  We can see in the response that the status is now destroying.
When Global Beacon index has been deleted on the dataset, when you try to get the status for the Global Beacon it will return None.
Step5:  Alternatively, you may set the argument raise_on_disabled to True, to raise an exception if Global Beacon doesn't exist on the dataset. You'll get 404 error with following message
<ASSISTANT_TASK:>
Python Code:
# Importing SolveBio library
from solvebio import login
from solvebio import Object
# Logging to SolveBio
login()
Explanation: Global Beacon
Global Beacon lets anyone in your organization find datasets based on the entities it contains (i.e. variants, genets, targets). 
Note: Only datasets that contain entities can be indexed.
Importing SolveBio library and logging in
End of explanation
# Getting the dataset
dataset_full_path = "solvebio:public:/beacon-test-dataset"
dataset = Object.get_by_full_path(dataset_full_path)
dataset
# Enabling Global Beacon on dataset
dataset.enable_global_beacon()
Explanation: Enabling Global Beacon on dataset
First let’s start with enabling Global Beacon on the dataset:
End of explanation
# Getting the status of global beacon on the dataset
dataset.get_global_beacon_status()
Explanation: Please notice that in the response, attribute status is indexing. While indexing is still in progress you won't be able to perform Global Beacon Search.
Checking the status of Global Beacon
Let’s check now the status of Global Beacon indexing for the datasets:
End of explanation
# Disabling Global Beacon on dataset
dataset.disable_global_beacon()
Explanation: As we can see, indexing has been completed (status is completed and progress percentage is 100%). 
Disabling Global Beacon on dataset
Now when we made sure that global beacon exists for the dataset, when we don't need it any more, we can disable/delete it.
End of explanation
# Getting the status of global beacon on the dataset
status = dataset.get_global_beacon_status()
print(status)
Explanation: We can see in the response that the status is now destroying.
When Global Beacon index has been deleted on the dataset, when you try to get the status for the Global Beacon it will return None.
End of explanation
dataset.get_global_beacon_status(raise_on_disabled=True)
Explanation: Alternatively, you may set the argument raise_on_disabled to True, to raise an exception if Global Beacon doesn't exist on the dataset. You'll get 404 error with following message: "Error: No Global Beacon for Dataset:DATASET_ID"
End of explanation
<END_TASK>